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 17, 2026 18:14Josu San MartinJosu San MartinScore: 12,921Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 18:1712,88122,123,58110,202,0001,134,0002,125,824
2May 17, 2026 18:1712,88523,262,72910,224,0001,115,0002,125,824
3May 17, 2026 18:1712,90222,417,51610,205,0001,149,0002,125,824
4May 17, 2026 18:1712,91823,369,96010,234,0001,134,0002,125,824
5May 17, 2026 18:1712,92123,995,96510,312,0001,059,0002,129,920
6May 17, 2026 18:1712,94022,933,09810,261,0001,127,0002,129,920
7May 17, 2026 18:1712,94022,176,67810,273,0001,115,0002,125,824
8May 17, 2026 18:1712,95523,268,00410,258,0001,143,0002,125,824
9May 17, 2026 18:1713,16720,853,07110,513,0001,074,0002,125,824