Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^4: Rotationally Prime Numbers Revisitedby hv (Prior) |
on Mar 25, 2005 at 12:54 UTC ( [id://442315]=note: print w/replies, xml ) | Need Help?? |
Indeed, I'd argue they're more likely to be primes: numbers of the form M(a, p) = (a^p - 1)/(a - 1) form an extended class of Mersenne numbers, and in particular will not share a factor with any M(a, q), q < p, and draw their factors from the restricted set {p, <2kp + 1>}. I don't know if there's a way to adapt the Lucas-Lehmer test to check directly for divisors in this extended class. Hugo
In Section
Seekers of Perl Wisdom
|
|