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 listFeb 8, 2026 20:02gamergamerScore: 2,459,453Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 8, 2026 20:022,440,0352,178,725,9432,144,233,0002,998,0002,285,568
2Feb 8, 2026 20:022,444,0842,176,155,9202,148,796,0001,998,0002,293,760
3Feb 8, 2026 20:022,448,7522,176,898,7752,152,904,0001,998,0002,289,664
4Feb 8, 2026 20:022,456,1362,185,742,5662,158,401,0002,999,0002,301,952
5Feb 8, 2026 20:022,459,4532,188,836,5562,162,320,0001,999,0002,285,568
6Feb 8, 2026 20:022,462,4352,193,697,0612,163,945,0002,998,0002,289,664
7Feb 8, 2026 20:022,467,8032,200,999,1112,169,668,0001,999,0002,301,952
8Feb 8, 2026 20:022,469,3422,200,072,9972,170,023,0002,998,0002,289,664
9Feb 8, 2026 20:022,472,9912,201,176,1292,172,234,0003,998,0002,281,472