Prime Sum
CodeChefOpen on judge ↗
Eddy needs to prove to a website that he is a robot. The website asks for the sum of the first $N$ primes, within a small amount of time. There's no way that Eddy could have calculated them that fast! Write a program to help him obtain the sums quickly. In case you forgot: A prime number is a natural number whose only factors are 1 and itself. Note that this definition excludes 1. ###Input F
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start