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 13, 2026 15:49Dominique GarmierDominique GarmierScore: 60,657Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 13, 2026 15:4960,54375,793,34751,268,0002,010,0002,289,664
2Mar 13, 2026 15:4960,58675,614,19851,305,0002,011,0002,281,472
3Mar 13, 2026 15:4960,59174,551,87151,308,0002,012,0002,289,664
4Mar 13, 2026 15:4960,59478,181,90052,317,0001,006,0002,289,664
5Mar 13, 2026 15:4960,65780,499,64852,371,0001,007,0002,289,664
6Mar 13, 2026 15:4960,67479,705,34852,386,0001,007,0002,387,968
7Mar 13, 2026 15:4960,70378,110,25152,412,0001,007,0002,277,376
8Mar 13, 2026 15:4960,81477,703,70452,507,0001,009,0002,289,664
9Mar 13, 2026 15:4960,83979,252,91852,528,0001,010,0002,375,680