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:07Josu San MartinJosu San MartinScore: 10,229Success
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:1010,16119,122,4007,936,0001,006,0002,113,536
2May 22, 2026 00:1010,18119,689,0477,954,0001,006,0002,117,632
3May 22, 2026 00:1010,21418,762,6767,971,0001,018,0002,117,632
4May 22, 2026 00:1010,21718,106,6657,985,0001,006,0002,117,632
5May 22, 2026 00:1010,22920,434,7527,980,0001,022,0002,117,632
6May 22, 2026 00:1010,23820,714,5287,999,0001,011,0002,117,632
7May 22, 2026 00:1010,28419,212,7887,992,0001,058,0002,117,632
8May 22, 2026 00:1010,34220,158,4928,073,0001,028,0002,117,632
9May 22, 2026 00:1010,47719,185,3508,106,0001,114,0002,117,632