You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A faster than average C/C++ function to detect if a number is prime.
The code is actually C++, but you can convert it to C by replacing all the "bool" references with "int". Replace "true" and "false" with 0 and 1 respectively.
About
A faster than average C/C++ function to detect if a number is prime.