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:52Johan SannemoJohan SannemoScore: 9,195Success
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:529,10027,717,7836,006,0002,002,0002,269,184
2Jan 20, 2026 15:529,10922,909,5856,012,0002,004,0002,498,560
3Jan 20, 2026 15:529,13424,270,3686,029,0002,009,0002,502,656
4Jan 20, 2026 15:529,14723,361,8066,037,0002,012,0002,285,568
5Jan 20, 2026 15:529,14922,762,9777,045,0001,006,0002,285,568
6Jan 20, 2026 15:529,17024,195,0236,053,0002,017,0002,285,568
7Jan 20, 2026 15:529,19530,198,0066,069,0002,023,0002,285,568
8Jan 20, 2026 15:529,21125,208,7936,080,0002,026,0002,285,568
9Jan 20, 2026 15:529,23829,617,7126,097,0002,032,0002,506,752
10Jan 20, 2026 15:529,24225,625,8856,100,0002,033,0002,494,464
11Jan 20, 2026 15:529,25627,857,9346,109,0002,036,0002,494,464
12Jan 20, 2026 15:529,33826,380,5006,163,0002,054,0002,494,464