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 26, 2026 15:51olliecrowolliecrowScore: 13,085Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 15:5213,01427,661,1488,330,0003,123,0002,531,328
2Apr 26, 2026 15:5213,02131,027,77910,418,0001,041,0002,342,912
3Apr 26, 2026 15:5213,03523,471,4399,386,0002,085,0002,473,984
4Apr 26, 2026 15:5213,03923,565,24810,432,0001,043,0002,347,008
5Apr 26, 2026 15:5213,08530,381,25810,469,0001,046,0002,433,024
6Apr 26, 2026 15:5213,11326,687,75210,491,0001,049,0002,342,912
7Apr 26, 2026 15:5213,12833,605,63810,503,0001,050,0002,428,928
8Apr 26, 2026 15:5213,13031,168,5139,454,0002,101,0002,433,024
9Apr 26, 2026 15:5213,18226,369,98910,547,0001,054,0002,437,120