Yet another prime checker. Of course the name is a result of an inspiration coming from the name of yay.
Find whether a number is prime or not as fast as possible.
-
Divisors are not even numbers and multiples of 3, 5, 7, 11. (Sieve of Eratosthenes)
-
Deal with big numbers such big (> 10^22) that maybe calculation never ends, thanks to gmp library.
-
Use the hundred percent of all the cpu cores, thanks to pthread library.
-
If your computer's fan works properly, then the COVID-19 hanging in the air will see what the hell is. Otherwise, your computer can see...
Just clone the repo, and make all
.
$ ./yprime <number>