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 10, 2026 23:54Aleksei ShahoikaAleksei ShahoikaScore: 44,034Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 10, 2026 23:5644,00048,553,25538,720,00002,113,536
2May 10, 2026 23:5644,00647,887,49138,726,00002,113,536
3May 10, 2026 23:5644,00948,665,51338,728,00002,113,536
4May 10, 2026 23:5644,01848,087,64638,736,00002,113,536
5May 10, 2026 23:5644,03449,067,26238,750,00002,113,536
6May 10, 2026 23:5644,10547,365,98537,803,0001,010,0002,113,536
7May 10, 2026 23:5644,12949,180,69038,834,00002,113,536
8May 10, 2026 23:5644,13247,425,07538,837,00002,113,536
9May 10, 2026 23:5644,20447,433,74938,900,00002,113,536