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 22:05Aleksei ShahoikaAleksei ShahoikaScore: 45,631Success
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 22:0745,40749,101,12838,885,0001,074,0002,113,536
2May 10, 2026 22:0745,48049,107,90238,928,0001,095,0002,113,536
3May 10, 2026 22:0745,53451,413,02839,038,0001,032,0002,113,536
4May 10, 2026 22:0745,62049,695,69839,077,0001,069,0002,113,536
5May 10, 2026 22:0745,63151,366,94339,048,0001,108,0002,113,536
6May 10, 2026 22:0745,66551,465,01339,082,0001,104,0002,113,536
7May 10, 2026 22:0745,73851,205,82439,149,0001,101,0002,113,536
8May 10, 2026 22:0745,78649,339,37239,183,0001,109,0002,113,536
9May 10, 2026 22:0745,81949,354,06239,232,0001,089,0002,113,536