I think a number is prime when M=2 for N = 3 to 11 step 2 M = (2^N) mod N if M = 2 then print N next -------------- next part -------------- An HTML attachment was scrubbed... URL: http://gmplib.org/list-archives/gmp-discuss/attachments/20060514/2d0c602d/attachment.html