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 20, 2026 15:49Johan SannemoJohan SannemoScore: 9,169Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2026 15:509,12725,006,2456,024,0002,008,0002,285,568
2Jan 20, 2026 15:509,14523,080,6666,036,0002,012,0002,285,568
3Jan 20, 2026 15:499,14825,039,4657,044,0001,006,0002,285,568
4Jan 20, 2026 15:499,16424,990,6835,040,0003,024,0002,506,752
5Jan 20, 2026 15:499,16926,823,0697,061,0001,008,0002,355,200
6Jan 20, 2026 15:499,17024,193,4485,044,0003,026,0002,338,816
7Jan 20, 2026 15:499,17429,411,2845,046,0003,027,0002,281,472
8Jan 20, 2026 15:509,18224,451,5355,050,0003,030,0002,281,472
9Jan 20, 2026 15:499,48429,007,3905,216,0003,130,0002,289,664