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 listApr 20, 2026 21:49Victor MerckléVictor MerckléScore: 22,026Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 21:5021,70144,487,81517,087,0002,010,0002,379,776
2Apr 20, 2026 21:5021,91140,461,45118,268,0001,014,0002,379,776
3Apr 20, 2026 21:5021,94439,435,77718,295,0001,016,0002,420,736
4Apr 20, 2026 21:5022,01741,579,96618,356,0001,019,0002,387,968
5Apr 20, 2026 21:5022,02637,059,03018,363,0001,020,0002,371,584
6Apr 20, 2026 21:5022,04044,503,34918,376,0001,020,0002,379,776
7Apr 20, 2026 21:5022,19832,576,82318,507,0001,028,0002,265,088
8Apr 20, 2026 21:5022,49537,441,52517,817,0001,979,0002,269,184
9Apr 20, 2026 21:5022,65534,488,51317,944,0001,993,0002,265,088