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:16Johan SannemoJohan SannemoScore: 11,994Success
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:1611,82725,150,3638,327,0002,081,0002,347,008
2Jan 20, 2026 13:1611,85526,450,8919,389,0001,043,0002,359,296
3Jan 20, 2026 13:1611,99328,035,6139,499,0001,055,0002,347,008
4Jan 20, 2026 13:1611,99426,741,7349,500,0001,055,0002,289,664
5Jan 20, 2026 13:1612,01829,568,4558,461,0002,115,0002,285,568
6Jan 20, 2026 13:1612,02528,824,8658,466,0002,116,0002,351,104