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 22, 2026 23:14olliecrowolliecrowScore: 14,355Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2026 23:1514,14828,766,99411,414,0001,037,0002,326,528
2Apr 22, 2026 23:1514,21028,632,86011,463,0001,042,0002,330,624
3Apr 22, 2026 23:1514,25730,697,21111,502,0001,045,0002,318,336
4Apr 22, 2026 23:1514,30528,624,22411,540,0001,049,0002,326,528
5Apr 22, 2026 23:1514,35530,524,95911,581,0001,052,0002,338,816
6Apr 22, 2026 23:1514,36228,196,86311,586,0001,053,0002,306,048
7Apr 22, 2026 23:1514,36828,340,02411,591,0001,053,0002,342,912
8Apr 22, 2026 23:1514,58030,451,39710,857,0001,974,0002,392,064
9Apr 22, 2026 23:1515,15736,264,18212,313,0001,026,0002,330,624