If you already have that iterator, dividing by the primes up to and including the square root is quite easy.
In reply to Re^3: Find prime number between 1 to 1000000
by tilly
in thread Find prime number between 1 to 1000000
by mecrazycoder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |