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 listFeb 20, 2026 02:00zielajzielajScore: 3,327Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 20, 2026 02:003,15218,854,0152,774,00002,428,928
2Feb 20, 2026 02:003,31115,348,3151,943,000971,0002,514,944
3Feb 20, 2026 02:003,31719,305,6551,946,000973,0002,535,424
4Feb 20, 2026 02:003,32718,817,9491,952,000976,0002,424,832
5Feb 20, 2026 02:003,32721,120,0622,928,00002,428,928
6Feb 20, 2026 02:003,33821,604,2251,958,000979,0002,428,928
7Feb 20, 2026 02:003,35618,687,7461,969,000984,0002,531,328
8Feb 20, 2026 02:003,78321,014,8853,329,00002,535,424
9Feb 20, 2026 02:003,93524,170,6143,463,00002,424,832