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 listJan 16, 2026 04:43mgildermgilderScore: 241,381Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 16, 2026 04:43239,257236,884,020210,546,00002,289,664
2Jan 16, 2026 04:43240,105234,249,720211,292,00002,359,296
3Jan 16, 2026 04:43240,302240,978,643210,464,0001,002,0002,289,664
4Jan 16, 2026 04:43241,018235,947,381210,096,0002,000,0002,371,584
5Jan 16, 2026 04:43241,381232,481,399211,414,0001,001,0002,289,664
6Jan 16, 2026 04:43241,452241,220,831212,478,00002,281,472
7Jan 16, 2026 04:43241,572237,491,644212,583,00002,289,664
8Jan 16, 2026 04:43241,707239,942,460210,705,0001,997,0002,363,392
9Jan 16, 2026 04:43242,009235,223,415211,969,000999,0002,289,664