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 14:11Johan SannemoJohan SannemoScore: 10,630Success
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 14:1110,49726,712,9158,211,0001,026,0002,289,664
2Jan 20, 2026 14:1110,53630,718,3277,212,0002,060,0002,502,656
3Jan 20, 2026 14:1110,55124,132,6657,222,0002,063,0002,338,816
4Jan 20, 2026 14:1110,56130,834,1606,196,0003,098,0002,285,568
5Jan 20, 2026 14:1110,63028,686,7099,354,00002,285,568
6Jan 20, 2026 14:1110,69329,795,6568,365,0001,045,0002,285,568
7Jan 20, 2026 14:1110,73929,241,3258,400,0001,050,0002,289,664
8Jan 20, 2026 14:1110,77424,810,5818,428,0001,053,0002,314,240
9Jan 20, 2026 14:1110,79129,658,3427,386,0002,110,0002,289,664