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 00:04Aleksei ShahoikaAleksei ShahoikaScore: 44,871Success
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 00:0744,72847,959,33339,361,00002,113,536
2May 11, 2026 00:0744,78648,537,27039,412,00002,113,536
3May 11, 2026 00:0744,84551,122,83339,464,00002,113,536
4May 11, 2026 00:0744,86849,308,69539,484,00002,113,536
5May 11, 2026 00:0744,87150,999,80139,487,00002,113,536
6May 11, 2026 00:0744,91248,758,49039,523,00002,113,536
7May 11, 2026 00:0744,98048,152,60939,583,00002,113,536
8May 11, 2026 00:0745,00648,397,59839,606,00002,113,536
9May 11, 2026 00:0745,10753,733,33939,695,00002,113,536