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 10:22olliecrowolliecrowScore: 12,040Success
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 10:2311,70028,945,0199,267,0001,029,0002,547,712
2Apr 30, 2026 10:2311,81016,887,6519,354,0001,039,0002,310,144
3Apr 30, 2026 10:2311,88616,995,6539,414,0001,046,0002,334,720
4Apr 30, 2026 10:2311,93817,060,7439,456,0001,050,0002,306,048
5Apr 30, 2026 10:2312,04017,165,4489,537,0001,059,0002,330,624
6Apr 30, 2026 10:2312,04217,289,0578,478,0002,119,0002,334,720
7Apr 30, 2026 10:2312,10517,017,2619,588,0001,065,0002,555,904
8Apr 30, 2026 10:2312,11317,260,1109,594,0001,066,0002,555,904
9Apr 30, 2026 10:2312,83416,917,67811,294,00002,551,808