Ensure that you are logged in and have the required permissions to access the test.
A server error has occurred. Please refresh the page or try after some time.
An error has occurred. Please refresh the page or try after some time.
2.5
Given an integer N, find the sum of all primes < N.
The only line of the input file contains a positive integer N.
Output the sum of all primes < N.
1 ≤ N ≤ 4000000 You are guaranteed that the answer will fit in a 64-bit integer.
A password reset link will be sent to the following email id
?