What is the minimum value that can be written as sum of primes in n different ways?

For example, 10 is the minimum value that can be written as the sum of primes in exactly five different ways:

 2 + 2 + 2 + 2 + 2
 2 + 2 + 3 + 3
 2 + 3 + 5
 5 + 5
 3 +7

8 can be written in 3 different ways but 7 can also be written in 3 different ways. So 7 is the right answer.

https://projecteuler.net/problem=77

Solution Stats

19 Solutions

8 Solvers

Last Solution submitted on May 30, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers8

Suggested Problems

More from this Author174

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!