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 28, 2026 12:29Dominique GarmierDominique GarmierScore: 11,327Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 12:2911,29825,580,7447,955,0001,988,0002,363,392
2Apr 28, 2026 12:2911,31226,110,6697,964,0001,991,0002,371,584
3Apr 28, 2026 12:2911,31327,117,1787,965,0001,991,0002,363,392
4Apr 28, 2026 12:2911,32531,385,9367,973,0001,993,0002,367,488
5Apr 28, 2026 12:2911,32729,693,6359,968,00002,367,488
6Apr 28, 2026 12:2911,33526,242,4977,980,0001,995,0002,461,696
7Apr 28, 2026 12:2911,33828,115,6567,983,0001,995,0002,371,584
8Apr 28, 2026 12:2911,35526,997,4986,995,0002,998,0002,371,584
9Apr 28, 2026 12:2911,53028,653,7298,118,0002,029,0002,367,488