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 22:23Aleksei ShahoikaAleksei ShahoikaScore: 13,556Success
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 22:2513,41421,275,80311,805,00002,113,536
2May 11, 2026 22:2513,46921,046,71311,853,00002,113,536
3May 11, 2026 22:2513,51821,675,04911,896,00002,113,536
4May 11, 2026 22:2513,53423,034,28710,901,0001,009,0002,113,536
5May 11, 2026 22:2513,55620,386,45811,930,00002,113,536
6May 11, 2026 22:2513,58422,584,83011,954,00002,113,536
7May 11, 2026 22:2513,67523,272,98212,034,00002,113,536
8May 11, 2026 22:2513,67623,496,10312,035,00002,113,536
9May 11, 2026 22:2513,75023,240,52112,100,00002,113,536