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 2, 2026 22:12A_ShamanA_ShamanScore: 68,881Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 22:1568,61969,846,69259,248,0001,137,0002,113,536
2Jul 2, 2026 22:1568,71269,952,36359,310,0001,157,0002,113,536
3Jul 2, 2026 22:1568,73873,789,82059,364,0001,126,0002,113,536
4Jul 2, 2026 22:1568,79570,033,66259,405,0001,135,0002,113,536
5Jul 2, 2026 22:1568,88170,463,09959,338,0001,278,0002,113,536
6Jul 2, 2026 22:1568,98070,167,49559,557,0001,146,0002,113,536
7Jul 2, 2026 22:1569,00570,608,99159,471,0001,254,0002,113,536
8Jul 2, 2026 22:1569,13970,346,05559,699,0001,144,0002,113,536
9Jul 2, 2026 22:1569,17070,384,93559,729,0001,141,0002,113,536