Write a simple program in C++ that lets the user input a single integernwhere 1 ≤ n ≤ 100000. The program should print the sum of the first n prime numbers. In the first example below, the first 5 prime numbers are 2, 3, 5, 7, and 11.
Example #1:
Enter integer: 5
Prime sum: 28
Example #2:
Enter integer: 100000
Prime sum: 62260698721
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here