Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listMay 18, 2024 14:44Ivan BessonovIvan BessonovScore: 19,663Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 14:4419,51348,563,89415,151,0002,020,0002,301,952
2May 18, 2024 14:4419,57339,682,01616,211,0001,013,0002,289,664
3May 18, 2024 14:4419,61144,802,80016,243,0001,015,0002,297,856
4May 18, 2024 14:4419,62243,743,48215,236,0002,031,0002,293,760
5May 18, 2024 14:4419,63939,340,80515,249,0002,033,0002,297,856
6May 18, 2024 14:4419,64345,073,78216,270,0001,016,0002,289,664
7May 18, 2024 14:4419,66337,293,89515,268,0002,035,0002,289,664
8May 18, 2024 14:4420,35543,110,78716,917,000995,0002,306,048
9May 18, 2024 14:4420,40034,077,82215,958,0001,994,0002,289,664
10May 18, 2024 14:4421,57986,083,51418,989,33502,285,568
11May 18, 2024 14:4421,58890,892,30718,997,49202,285,568
12May 18, 2024 14:4421,60995,783,94519,015,71802,285,568