How do I generate Primes Using 6*k +- 1 rule
问题 We know that all primes above 3 can be generated using: 6 * k + 1 6 * k - 1 However we all numbers generated from the above formulas are not prime. For Example: 6 * 6 - 1 = 35 which is clearly divisible by 5. To Eliminate such conditions, I used a Sieve Method and removing the numbers which are factors of the numbers generated from the above formula. Using the facts: A number is said to be prime if it has no prime factors. As we can generate all the prime numbers using the above formulas. If