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 listFeb 14, 2026 16:17olliecrowolliecrowScore: 27,756Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 14, 2026 16:1727,64245,795,61023,312,0001,013,0002,486,272
2Feb 14, 2026 16:1727,65549,710,19524,336,00002,486,272
3Feb 14, 2026 16:1727,68442,081,08624,362,00002,482,176
4Feb 14, 2026 16:1727,74144,951,96824,412,00002,490,368
5Feb 14, 2026 16:1727,75645,024,13224,425,00002,473,984
6Feb 14, 2026 16:1727,79745,788,02024,461,00002,486,272
7Feb 14, 2026 16:1727,84149,704,26624,500,00002,478,080
8Feb 14, 2026 16:1727,85344,143,12023,490,0001,021,0002,469,888
9Feb 14, 2026 16:1727,91145,223,08124,562,00002,494,464