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 20, 2026 14:25Dominique GarmierDominique GarmierScore: 13,140Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 14:2613,08433,279,49911,514,00002,383,872
2Apr 20, 2026 14:2613,11230,574,15610,490,0001,049,0002,273,280
3Apr 20, 2026 14:2613,11827,270,47010,495,0001,049,0002,375,680
4Apr 20, 2026 14:2613,12131,278,61610,498,0001,049,0002,375,680
5Apr 20, 2026 14:2613,14028,449,94510,513,0001,051,0002,371,584
6Apr 20, 2026 14:2613,14332,335,62810,515,0001,051,0002,367,488
7Apr 20, 2026 14:2613,27230,320,50810,619,0001,061,0002,375,680
8Apr 20, 2026 14:2613,28627,990,07910,630,0001,062,0002,375,680
9Apr 20, 2026 14:2613,57530,583,4189,955,0001,991,0002,375,680