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 listMay 22, 2026 00:52Josu San MartinJosu San MartinScore: 26,144Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2026 00:5426,11135,870,10020,935,0002,043,0002,113,536
2May 22, 2026 00:5426,12234,023,24420,955,0002,033,0002,113,536
3May 22, 2026 00:5426,12632,980,26720,973,0002,018,0002,113,536
4May 22, 2026 00:5426,12834,226,67420,959,0002,034,0002,113,536
5May 22, 2026 00:5426,14432,756,29720,958,0002,049,0002,113,536
6May 22, 2026 00:5426,14735,181,02120,970,0002,040,0002,113,536
7May 22, 2026 00:5426,34732,305,54420,186,0003,000,0002,113,536
8May 22, 2026 00:5426,39533,846,00721,205,0002,023,0002,113,536
9May 22, 2026 00:5426,51333,980,02120,357,0002,975,0002,113,536