Breaking

n n is a positive integer greater than 5. What is the maximum amount of primes are there in the following sequence?

n + 1 ; n + 2 ; . . . ; n + 29 ; n + 30 \large n + 1; \; n + 2; \; ...; \; n + 29; \; n + 30


The answer is 8.

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.

2 solutions

Henry U
Jan 13, 2019

In the beginning, we start with 30 numbers, and all could be potentially prime.

Every second number is divisible by 2, so we're left with 15 possibilities.

Every third number is divisible by 3 (independently from divisibility by 2), so out of 15 numbers, 10 remain.

Every fifth number is divisible by 5 (independent from previous), so 8 numbers remain.

If a number was divisible by 7 (or a greater prime) then we would have already counted it before.

To prove that it's actually possible to have 8 primes among these numbers, consider n = 6 n=6 , which gives the primes 7 , 11 , 13 , 17 , 19 , 23 , 29 , 31 7,11,13,17,19,23,29,31 .

Therefore, the maximum number of primes is 8 .

So you're on a marathon of solving my old problems, right?

Thành Đạt Lê - 2 years, 4 months ago
Shubham Sadhwani
Nov 12, 2017

the solution is pick any no from primes above 5 and use hit and trial

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...