Since there are 62 possible values to check, how can this be done in a more efficient fashion?
Printable View
Since there are 62 possible values to check, how can this be done in a more efficient fashion?
Does this help? Lucas–Lehmer primality test
Edit: The MathWorld page is a bit cleaner than the Wikipedia article at the moment, in my opinion.