Apart from 1, 2 and 3, all the prime numbers are either of the form (6*n - 1) or (6*n + 1).
Can we use this property to generate the primes till we get 10000 primes. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.