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 11, 2026 21:53Aleksei ShahoikaAleksei ShahoikaScore: 14,478Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 11, 2026 21:5514,36721,296,69412,643,00002,113,536
2May 11, 2026 21:5514,39023,228,45712,664,00002,113,536
3May 11, 2026 21:5514,41721,326,99212,687,00002,113,536
4May 11, 2026 21:5514,41821,966,09812,688,00002,113,536
5May 11, 2026 21:5514,47822,933,03012,741,00002,113,536
6May 11, 2026 21:5514,48023,125,96812,743,00002,113,536
7May 11, 2026 21:5514,51521,345,59112,774,00002,113,536
8May 11, 2026 21:5514,52322,107,31512,781,00002,113,536
9May 11, 2026 21:5514,54421,971,90211,796,0001,003,0002,113,536