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 21, 2026 23:36Josu San MartinJosu San MartinScore: 120,525Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2026 23:39119,907116,447,567104,457,0001,062,0002,113,536
2May 21, 2026 23:39120,059114,776,190104,646,0001,006,0002,113,536
3May 21, 2026 23:39120,456117,412,051104,919,0001,083,0002,113,536
4May 21, 2026 23:39120,484116,776,526105,007,0001,019,0002,113,536
5May 21, 2026 23:39120,525115,210,033105,028,0001,034,0002,113,536
6May 21, 2026 23:39120,973115,529,819105,394,0001,063,0002,113,536
7May 21, 2026 23:39120,980119,295,828105,411,0001,052,0002,113,536
8May 21, 2026 23:39121,122117,979,306105,521,0001,067,0002,113,536
9May 21, 2026 23:39121,193115,754,763105,569,0001,081,0002,113,536