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 listSep 25, 2026 18:32Kevin HeaveyKevin HeaveyScore: 2,645Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 25, 2026 18:352,63011,435,0922,315,000020,480
2Sep 25, 2026 18:352,63610,764,8722,320,000020,480
3Sep 25, 2026 18:352,63710,766,9852,321,000020,480
4Sep 25, 2026 18:352,64211,500,3412,325,000020,480
5Sep 25, 2026 18:352,64511,463,6202,328,000020,480
6Sep 25, 2026 18:352,65011,557,4052,332,000020,480
7Sep 25, 2026 18:352,65010,796,3312,332,000020,480
8Sep 25, 2026 18:352,65310,699,0182,335,000020,480
9Sep 25, 2026 18:352,66011,527,2992,341,000020,480