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 6, 2026 02:22olliecrowolliecrowScore: 14,056Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 6, 2026 02:2513,96827,880,72612,292,00002,551,808stderr
2May 6, 2026 02:2514,00624,460,40512,326,00002,555,904stderr
3May 6, 2026 02:2514,02825,706,40512,345,00002,551,808stderr
4May 6, 2026 02:2514,03125,031,82412,348,00002,555,904stderr
5May 6, 2026 02:2514,05627,190,00912,370,00002,551,808stderr
6May 6, 2026 02:2514,05628,563,46912,370,00002,535,424stderr
7May 6, 2026 02:2514,08927,407,63712,399,00002,543,616stderr
8May 6, 2026 02:2514,10225,899,40011,361,0001,049,0002,539,520stderr
9May 6, 2026 02:2514,12027,734,64211,382,0001,044,0002,543,616stderr