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 listJan 19, 2026 21:05Johan SannemoJohan SannemoScore: 78,915Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 19, 2026 20:5878,50391,701,18767,081,0002,002,0002,301,952
2Jan 19, 2026 20:5878,53592,213,74067,108,0002,003,0002,355,200
3Jan 19, 2026 21:0578,59592,658,17367,160,0002,004,0002,289,664
4Jan 19, 2026 20:5878,63392,182,29967,192,0002,005,0002,289,664
5Jan 19, 2026 20:5878,78691,234,45468,328,0001,004,0002,289,664
6Jan 19, 2026 20:5878,88690,385,25668,414,0001,006,0002,289,664
7Jan 19, 2026 21:0578,91594,594,51168,439,0001,006,0002,338,816
8Jan 19, 2026 20:5878,93695,989,92568,458,0001,006,0002,342,912
9Jan 19, 2026 20:5878,94395,143,97968,464,0001,006,0002,289,664
10Jan 19, 2026 20:5878,952102,299,34067,465,0002,013,0002,289,664
11Jan 19, 2026 21:0579,02595,856,85067,527,0002,015,0002,289,664
12Jan 19, 2026 20:5879,11594,761,96968,612,0001,009,0002,289,664