题目描述
Problem Statement
Given an integer N, find the sum of all primes < N.
Input Format
The only line of the input file contains a positive integer N.
Output Format
Output the sum of all primes < N.
Constraints
1 ≤ N ≤ 4000000
You are guaranteed that the answer will fit in a 64-bit integer.
SAMPLE INPUT
1000
SAMPLE OUTPUT
76127
输入格式
见题面
输出格式
见题面
样例输入
1000
SAMPLE
样例输出
76127