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 listJun 21, 2026 22:28Josu San MartinJosu San MartinScore: 59,526Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 22:3059,19461,068,61850,035,0002,056,0002,113,536
2Jun 21, 2026 22:3059,34261,202,01150,154,0002,067,0002,113,536
3Jun 21, 2026 22:3059,39561,158,07850,186,0002,082,0002,113,536
4Jun 21, 2026 22:3059,43661,341,33150,229,0002,075,0002,113,536
5Jun 21, 2026 22:3059,52661,344,28550,303,0002,080,0002,113,536
6Jun 21, 2026 22:3059,55661,332,79050,328,0002,082,0002,113,536
7Jun 21, 2026 22:3059,61761,415,97650,384,0002,079,0002,113,536
8Jun 21, 2026 22:3059,68461,480,21950,422,0002,100,0002,113,536
9Jun 21, 2026 22:3059,68861,546,13150,457,0002,069,0002,113,536