A Primality Test

Do you have an integer you would like to test for primality? If it is small (say less than 9007199254740991 = 253 - 1), then try this script:

Is prime?

For larger numbers try Dario Alpern's exceptional on-line routine to factor and prove primality. Other useful links include

Printed from the PrimePages <t5k.org> © G. L. Honaker and Chris K. Caldwell