Duo primus

What is the smallest composite number that cannot be written as the sum of 2 prime numbers ?


The answer is 27.

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
Feb 8, 2017

The composite numbers can be written as the sum of two primes as follows:

  • 4 = 2+2
  • 6 =3+3
  • 8= 5+3
  • 9= 7+2
  • 10= 5+5
  • 12= 7+5
  • 14= 7+7
  • 15= 2+13
  • 16= 3+13
  • 18= 5+13
  • 20= 3+17
  • 21= 2+19
  • 22= 3+19
  • 24= 5+19
  • 25= 2+23
  • 26= 3+23

But, 27 can't be made with the sum of two primes. Since it is odd, one of the primes must be 2, and 27-2 = 25 which isn't prime. _\square

Haha I was actually thinking of posting this problem a while back but didn't get around to it, so I'm glad to see that you've done it. Here is how the sequence of such composites continues. Of course, as Goldbach conjectures, (still an open question, but it's a good bet it's true), every integer n > 5 n \gt 5 can be written as the sum of three primes, and indeed

27 = 23 + 2 + 2 = 19 + 5 + 3 = 17 + 7 + 3 = 17 + 5 + 5 = 27 = 23 + 2 + 2 = 19 + 5 + 3 = 17 + 7 + 3 = 17 + 5 + 5 =

13 + 11 + 3 = 13 + 7 + 7 = 11 + 11 + 5 13 + 11 + 3 = 13 + 7 + 7 = 11 + 11 + 5 .

Follow-up questions: Can every integer n n be written as either the sum or difference of two primes? What is the cardinality of the set of integers that cannot be written as the sum of three distinct primes?

Brian Charlesworth - 4 years, 4 months ago

Log in to reply

Can u post this as a question ?

Kushal Bose - 4 years, 4 months ago

I suppose the answer to the first question is no, since 23 cannot.

However, the second one looks much more involved!

I would be happy to post it but I am not yet sure of the solution... 😐

Also, are you able to assume Goldbach's conjecture is true?

Geoff Pilling - 4 years, 4 months ago

Log in to reply

1st question: Yes, no non-twin prime can be expressed as either the sum or difference of two primes, and 23 23 is the first of these. I suppose the better companion problem to yours is to find the first composite that cannot be expressed as either the sum or difference of two primes. The honors go to 93 93 , which lies in the middle of the first prime gap greater than 6 6 , (neighboring primes 89 89 and 97 97 ). I can post this one referencing your problem as inspiration, if that's o.k..

2nd question: Yeah, much tougher; tougher than Goldbach's conjecture. But looking at numbers up to 100 100 I find that the only ones that cannot be expressed as the sum of three distinct primes are 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 11 , 13 , 17 1,2,3,4,5,6,7,8,9,11,13,17 . (The only numbers up to 100 100 that cannot be written as a sum of 2 \ge 2 distinct primes are 1 , 2 , 3 , 4 , 6 , 11 1,2,3,4,6,11 , as 5 = 2 + 3 , 7 = 2 + 5 , 8 = 3 + 5 , 9 = 2 + 7 , 13 = 2 + 11 5 = 2 + 3, 7 = 2 + 5, 8 = 3 + 5, 9 = 2 + 7, 13 = 2 + 11 and 17 = 2 + 3 + 5 + 7 17 = 2 + 3 + 5 + 7 .) So I conjecture a cardinality of 12 12 . :)

No, while it's truth seems overwhelmingly likely, we can't assume Goldbach's conjecture to be true. There is Vinogradov's theorem, though, a weak version of Goldbach's weak theorem, which implies that any sufficiently large odd integer can be written as the sum of three primes.

Brian Charlesworth - 4 years, 4 months ago

Log in to reply

@Brian Charlesworth I was thinking along the same lines myself... Time to write up a new paper... "The Charlesworth Conjecture" :0)

Geoff Pilling - 4 years, 4 months ago
Arthur Conmy
Jul 24, 2017

By Goldbach's Conjecture, which we know holds for all small numbers we will come across in this problem 1 ^1 , all even numbers can be written as the sum of two primes. Thus we only need to search odd, composite numbers.

Since an odd number must be the sum of an even an odd number if it is the sum of two integers, and 2 2 is the only even prime, we only need to check whether n 2 n-2 is prime for each odd, composite n n in ascending order:

9 2 = 7 9-2=7 , which is prime.

15 2 = 13 15-2=13 , which is prime.

21 2 = 19 21-2=19 , which is prime.

25 2 = 23 25-2=23 , which is prime.

27 2 = 25 27-2=25 , which is not prime ( 25 = 5 5 25 = 5 * 5 ).

Thus 25 \boxed{25} is the smallest composite number that cannot be written as the sum of 2 primes.

1 ^1 Note: Goldbach holds for all n < 4 × 1 0 18 n < 4 × 10^{18} ( Wikipedia ).

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...