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 listDec 27, 2025 16:11Josu San MartinJosu San MartinScore: 83,635Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 27, 2025 16:1183,19495,111,37071,206,0002,005,0002,359,296
2Dec 27, 2025 16:1183,28299,550,31272,285,0001,003,0002,359,296
3Dec 27, 2025 16:1183,33395,316,88373,333,00002,359,296
4Dec 27, 2025 16:1183,39094,564,13572,378,0001,005,0002,289,664
5Dec 27, 2025 16:1183,50999,064,28872,482,0001,006,0002,351,104
6Dec 27, 2025 16:1183,57597,472,18772,539,0001,007,0002,355,200
7Dec 27, 2025 16:1183,63597,326,81472,591,0001,008,0002,289,664
8Dec 27, 2025 16:1183,63997,328,81272,594,0001,008,0002,289,664
9Dec 27, 2025 16:1183,66996,539,88472,621,0001,008,0002,355,200
10Dec 27, 2025 16:1183,68598,483,37572,635,0001,008,0002,289,664
11Dec 27, 2025 16:1183,942104,168,02073,869,00002,289,664
12Dec 27, 2025 16:1183,949102,998,35471,879,0001,996,0002,289,664