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 24, 2026 17:32Victor MerckléVictor MerckléScore: 11,793Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 17:3411,61428,323,1559,199,0001,022,0002,482,176
2Apr 24, 2026 17:3411,66729,624,1269,241,0001,026,0002,478,080
3Apr 24, 2026 17:3411,68223,172,5899,253,0001,028,0002,543,616
4Apr 24, 2026 17:3411,78727,400,9589,336,0001,037,0002,490,368
5Apr 24, 2026 17:3411,79331,627,5819,341,0001,037,0002,486,272
6Apr 24, 2026 17:3411,81023,112,7579,354,0001,039,0002,539,520
7Apr 24, 2026 17:3411,82131,875,3639,363,0001,040,0002,486,272
8Apr 24, 2026 17:3411,82527,153,3009,366,0001,040,0002,482,176
9Apr 24, 2026 17:3411,83129,147,3609,371,0001,041,0002,490,368