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 listApr 21, 2026 10:05Victor MerckléVictor MerckléScore: 22,588Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 21, 2026 10:0622,43649,492,71018,705,0001,039,0002,441,216
2Apr 21, 2026 10:0622,45246,284,66018,719,0001,039,0002,441,216
3Apr 21, 2026 10:0622,56445,581,55218,865,000992,0002,437,120
4Apr 21, 2026 10:0622,58447,580,20618,881,000993,0002,392,064
5Apr 21, 2026 10:0622,58846,772,65617,891,0001,987,0002,437,120
6Apr 21, 2026 10:0622,61847,588,50217,914,0001,990,0002,441,216
7Apr 21, 2026 10:0622,62050,512,18117,916,0001,990,0002,437,120
8Apr 21, 2026 10:0622,66437,666,20917,951,0001,994,0002,428,928
9Apr 21, 2026 10:0622,70253,397,95416,982,0002,996,0002,433,024