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 20, 2026 19:21Pavel SkripkinPavel SkripkinScore: 2,495,631Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 19:222,385,5632,123,327,3022,098,297,000999,0002,355,200
2Apr 20, 2026 19:222,386,2212,129,146,3842,097,877,0001,998,0002,355,200
3Apr 20, 2026 19:222,416,1552,145,458,7102,125,218,000999,0002,359,296
4Apr 20, 2026 19:222,442,1572,161,466,3252,147,100,0001,999,0002,269,184
5Apr 20, 2026 19:222,495,6312,218,159,1832,194,157,0001,999,0002,363,392
6Apr 20, 2026 19:222,525,5222,250,346,9702,221,461,000999,0002,265,088
7Apr 20, 2026 19:222,526,7032,239,840,5112,221,501,0001,998,0002,269,184
8Apr 20, 2026 19:222,536,8902,262,474,3342,230,466,0001,998,0002,269,184
9Apr 20, 2026 19:222,544,8952,265,676,0302,239,508,00002,260,992