How many primes are in the form (for integer ) and is less than ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Since 1 5 lo g 1 0 1 5 < 1 8 < 1 6 lo g 1 0 1 6 , we are only interested in n in the range 1 ≤ n ≤ 1 5 .
If n has an odd prime factor p , so that n = p q for some q ≥ 1 , then since n n + 1 = n p q + 1 = ( n q + 1 ) j = 0 ∑ p − 1 ( − 1 ) j n q j we deduce that n n + 1 is divisible by n q + 1 and is bigger than n q + 1 , and hence is not prime.
Thus the only cases we need to consider are n = 1 , 2 , 4 , 8 . The first three ( 2 , 5 , 2 5 7 ) are prime, while 8 8 + 1 = 2 2 4 + 1 is divisible by 2 8 + 1 , so is not prime. The answer is therefore 3 .