Two bins

The numbers 1 through n n (inclusive) are separated into 2 bins.

For each bin, no two different numbers in it can add up to a prime number.

What is the largest n n for which this is possible?

If you think the answer is infinite, please put 99999 as your answer.


The answer is 99999.

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

Geoff Pilling
Nov 14, 2016

No matter how high n n is, you can put the even numbers in one bin and the odd numbers in the other one. Since any two numbers will always add up to an even number greater than two, the answer is \boxed{\infty}

Very nice split!

Calvin Lin Staff - 4 years, 7 months ago

Log in to reply

Thanks! :) ......

Geoff Pilling - 4 years, 7 months ago

Very nice!

Follow-up exercise: prove that, for any n n , the even/odd split is the only possible way to split the numbers.

Hint

Tijmen Veltman - 4 years, 7 months ago

Log in to reply

Ah yes... Likely a much more interesting question! :)

Geoff Pilling - 4 years, 7 months ago

they asked for 9999 so it was obvious

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...