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 listMar 19, 2026 18:45Dominique GarmierDominique GarmierScore: 13,651Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 19, 2026 18:4513,53026,687,79910,914,000992,0002,404,352
2Mar 19, 2026 18:4513,55029,803,2619,937,0001,987,0002,404,352
3Mar 19, 2026 18:4513,63431,386,1929,999,0001,999,0002,392,064
4Mar 19, 2026 18:4513,64534,543,96511,008,0001,000,0002,396,160
5Mar 19, 2026 18:4513,65129,228,36410,011,0002,002,0002,273,280
6Mar 19, 2026 18:4513,67429,472,67410,028,0002,005,0002,408,448
7Mar 19, 2026 18:4513,70729,747,54110,052,0002,010,0002,273,280
8Mar 19, 2026 18:4513,71831,035,84510,060,0002,012,0002,396,160
9Mar 19, 2026 18:4513,72028,850,64911,068,0001,006,0002,400,256