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 09:22Dominique GarmierDominique GarmierScore: 13,786Success
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 09:2313,67831,779,86210,031,0002,006,0002,379,776
2Apr 21, 2026 09:2313,67828,897,91310,031,0002,006,0002,273,280
3Apr 21, 2026 09:2313,76827,952,94710,097,0002,019,0002,371,584
4Apr 21, 2026 09:2313,77329,985,29910,101,0002,020,0002,375,680
5Apr 21, 2026 09:2313,78625,943,05910,110,0002,022,0002,371,584
6Apr 21, 2026 09:2313,79329,014,72410,115,0002,023,0002,375,680
7Apr 21, 2026 09:2313,80428,980,61010,124,0002,024,0002,379,776
8Apr 21, 2026 09:2313,81130,931,88410,129,0002,025,0002,379,776
9Apr 21, 2026 09:2313,82334,928,65810,138,0002,027,0002,375,680