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 15, 2026 19:47Dominique GarmierDominique GarmierScore: 33,940Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 15, 2026 19:4733,72759,786,93529,680,00002,281,472
2Mar 15, 2026 19:4733,75860,642,74429,707,00002,273,280
3Mar 15, 2026 19:4733,81658,850,94229,758,00002,387,968
4Mar 15, 2026 19:4733,82555,647,85328,774,000992,0002,387,968
5Mar 15, 2026 19:4733,94057,378,88329,867,00002,281,472
6Mar 15, 2026 19:4733,96855,110,15028,896,000996,0002,281,472
7Mar 15, 2026 19:4733,97754,759,30127,907,0001,993,0002,281,472
8Mar 15, 2026 19:4733,98554,816,86227,914,0001,993,0002,392,064
9Mar 15, 2026 19:4734,05756,106,69827,972,0001,998,0002,281,472