Hi Guys
Someone have a prime number algorithm or function ?
I need a function that is able to identify if a number is prime or not. I looked on the board, but couldn?t find any specific algo or function for that.
Someone have it ?
Best Regards,
Guga
Someone have a prime number algorithm or function ?
I need a function that is able to identify if a number is prime or not. I looked on the board, but couldn?t find any specific algo or function for that.
Someone have it ?
Best Regards,
Guga
http://en.wikipedia.org/wiki/Miller-Rabin_primality_test
Composite tester for a dword value,
no input routine provided,
the value is in an initialized dword.
It will correctly tell if
under range, composite, prime, not determined.
no input routine provided,
the value is in an initialized dword.
It will correctly tell if
under range, composite, prime, not determined.