subhashghosh
Hi Karishma
How does this follow ?
"This means that in any 6 consecutive numbers, there can be at most 2 prime numbers with a difference of 2 between them"
Regards,
Subhash
Karishma has rightly said that primes are of the form 6n+1 or 6n-1
This is not a formula for primes, it's more of a 'check'
If the number can be written in the form 6n+1 or 6n-1, it's PROBABLY a prime
e.g. Put n=4 6x4+1=25<<< Not Prime However, 6n-1=23 <<< Prime!
:D
See?
Now assume that for a particular value of n, 6n-1 and 6n+1 yield primes, in such a case the difference between the two would be:
6n+1 - 6n+1 = 2
Thus, the minimum difference between two prime numbers is 2.
Now consider 6 consecutive numbers:
n, n+1, n+2, n+3, n+4, n+5
Assume the middle term is a multiple of 6. So, n+3 and n+2 might be primes. If n+2 and n+3 are primes, then n+1 and n+5 wouldn't be primes. Thus, the maximum number of primes (greater than 3) that can occur in 6 consecutive numbers can never be more than 2!
I hope the explanation is clear :D