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:00Aleksei ShahoikaAleksei ShahoikaScore: 12,932Success
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:0312,86021,306,02411,317,00002,113,536
2May 11, 2026 22:0312,86220,530,03911,319,00002,113,536
3May 11, 2026 22:0312,87520,723,38411,330,00002,113,536
4May 11, 2026 22:0312,90521,244,28911,357,00002,117,632
5May 11, 2026 22:0312,93219,960,12611,381,00002,113,536
6May 11, 2026 22:0312,97521,861,50811,418,00002,113,536
7May 11, 2026 22:0313,02920,053,15111,466,00002,113,536
8May 11, 2026 22:0313,03020,897,93511,467,00002,117,632
9May 11, 2026 22:0313,10720,610,67710,444,0001,091,0002,113,536