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 21, 2026 10:18Victor MerckléVictor MerckléScore: 50,268Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 21, 2026 10:1949,86372,610,64840,889,0002,991,0002,494,464
2Apr 21, 2026 10:1949,96566,655,40840,972,0002,998,0002,490,368
3Apr 21, 2026 10:1950,16169,043,50041,133,0003,009,0002,490,368
4Apr 21, 2026 10:1950,21166,105,18441,174,0003,012,0002,473,984
5Apr 21, 2026 10:1950,26863,506,24341,220,0003,016,0002,277,376
6Apr 21, 2026 10:1950,36969,443,46941,303,0003,022,0002,494,464
7Apr 21, 2026 10:1950,45270,424,08041,371,0003,027,0002,486,272
8Apr 21, 2026 10:1950,58865,660,68541,483,0003,035,0002,490,368
9Apr 21, 2026 10:1950,64661,514,75541,531,0003,038,0002,273,280