Project Euler 131 - Prime Cube Partnership
Project Euler 131 - Prime Cube Partnership
Official link: https://projecteuler.net/problem=131
Official link: https://projecteuler.net/problem=131
The largest prime less than 1 million is 999,983, so if the difference between 2 consecutive cubes > 999,983 then we stop generating cubes
Enter a number (yourinput) < 577
Code will output the first yourinput primes that satisfy the condition as well as their sum