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 30, 2026 02:42olliecrowolliecrowScore: 19,022Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 02:4518,91124,753,83914,562,0002,080,0002,363,392
2Apr 30, 2026 02:4518,91224,779,18015,603,0001,040,0002,375,680
3Apr 30, 2026 02:4518,91444,630,98714,565,0002,080,0002,375,680
4Apr 30, 2026 02:4518,93424,645,86215,621,0001,041,0002,330,624
5Apr 30, 2026 02:4519,02233,751,93715,694,0001,046,0002,506,752
6Apr 30, 2026 02:4519,07524,979,98914,688,0002,098,0002,359,296
7Apr 30, 2026 02:4519,25225,075,20614,949,0001,993,0002,371,584
8Apr 30, 2026 02:4519,39725,150,61115,062,0002,008,0002,375,680
9Apr 30, 2026 02:4519,41025,064,09614,067,0003,014,0002,375,680