Project Euler 131 - Prime Cube Partnership
Project Euler 131 - Prime Cube Partnership
Official link: https://projecteuler.net/problem=131
Thought Process
Thought Process
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
Interactive Code
Interactive Code
Enter a number (yourinput) < 577
Code will output the first yourinput primes that satisfy the condition as well as their sum