BigInt problem

tsukikage tsukikage at dmail.com
Sat Feb 12 16:12:31 PST 2011


Please see source in attachment.
The output is

  M2 M3 M5 M7 M13 M17 M19 M31 M61 M89 M107 M127 M521 M607 M1279 M2203 M2281 M3217 M4253 M4423
*** M9689***
  M9941 M11213 M19937
*** M21701***
  M23209

It missed 2 Mersenne Primes 9689 & 21701.
Is it my program bug or bigint broken?
It seems subtle.

Thank you!
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: lltest.d
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20110213/e4ec415f/attachment.ksh>


More information about the Digitalmars-d-learn mailing list