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 13:20Johan SannemoJohan SannemoScore: 11,928Success
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 13:1211,84829,222,3529,384,0001,042,0002,351,104
2Jan 20, 2026 13:1211,85030,085,5628,343,0002,085,0002,355,200
3Jan 20, 2026 13:1211,85629,578,7129,390,0001,043,0002,347,008
4Jan 20, 2026 13:1211,87227,825,40310,447,00002,289,664
5Jan 20, 2026 13:1211,89131,315,2049,418,0001,046,0002,285,568
6Jan 20, 2026 13:1211,89232,396,8659,419,0001,046,0002,351,104
7Jan 20, 2026 13:2011,92826,627,27510,497,00002,289,664
8Jan 20, 2026 13:1211,93026,075,5859,449,0001,049,0002,285,568
9Jan 20, 2026 13:1211,95628,367,1768,417,0002,104,0002,285,568
10Jan 20, 2026 13:2011,97026,210,9149,481,0001,053,0002,289,664
11Jan 20, 2026 13:1211,99528,061,1998,445,0002,111,0002,285,568
12Jan 20, 2026 13:2012,11626,436,2988,530,0002,132,0002,289,664