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:19Josu San MartinJosu San MartinScore: 12,971Success
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:2212,80323,398,03910,169,0001,098,0002,125,824
2May 17, 2026 18:2212,80922,783,68010,171,0001,101,0002,129,920
3May 17, 2026 18:2212,91520,983,10410,242,0001,124,0002,125,824
4May 17, 2026 18:2212,92021,270,11910,241,0001,129,0002,125,824
5May 17, 2026 18:2212,97122,242,97310,260,0001,155,0002,125,824
6May 17, 2026 18:2212,99621,802,51610,302,0001,135,0002,129,920
7May 17, 2026 18:2213,01022,462,79810,326,0001,123,0002,125,824
8May 17, 2026 18:2213,01221,010,46810,304,0001,147,0002,125,824
9May 17, 2026 18:2213,03922,323,08410,341,0001,134,0002,125,824