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 listJul 7, 2026 15:29vahookvahookScore: 2,880Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 15:312,84810,501,9152,507,00002,113,536
2Jul 7, 2026 15:312,85710,468,1292,515,00002,113,536
3Jul 7, 2026 15:312,86410,419,6432,521,00002,113,536
4Jul 7, 2026 15:312,86710,520,7192,523,00002,113,536
5Jul 7, 2026 15:312,88010,475,6722,535,00002,113,536
6Jul 7, 2026 15:312,89310,440,4472,546,00002,113,536
7Jul 7, 2026 15:312,90210,446,5942,554,00002,113,536
8Jul 7, 2026 15:312,91710,537,2072,567,00002,113,536
9Jul 7, 2026 15:313,01710,564,3732,655,00002,113,536