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 listMar 20, 2026 00:26olliecrowolliecrowScore: 15,809Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 20, 2026 00:2615,62837,077,96013,753,00002,293,760
2Mar 20, 2026 00:2615,62832,947,25513,753,00002,351,104
3Mar 20, 2026 00:2615,65329,892,51013,775,00002,519,040
4Mar 20, 2026 00:2615,79534,723,92712,908,000992,0002,486,272
5Mar 20, 2026 00:2615,80930,256,35613,912,00002,519,040
6Mar 20, 2026 00:2615,81038,081,03012,920,000993,0002,514,944
7Mar 20, 2026 00:2615,82733,323,41912,934,000994,0002,486,272
8Mar 20, 2026 00:2615,83439,673,83712,939,000995,0002,498,560
9Mar 20, 2026 00:2615,84329,458,55812,947,000995,0002,273,280