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 listApr 24, 2026 14:16olliecrowolliecrowScore: 13,003Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 14:1712,96932,072,66110,376,0001,037,0002,560,000
2Apr 24, 2026 14:1712,97025,951,50310,377,0001,037,0002,392,064
3Apr 24, 2026 14:1712,98731,759,10910,390,0001,039,0002,318,336
4Apr 24, 2026 14:1712,99628,786,38810,398,0001,039,0002,535,424
5Apr 24, 2026 14:1713,00329,266,91710,403,0001,040,0002,420,736
6Apr 24, 2026 14:1713,01728,945,07110,414,0001,041,0002,347,008
7Apr 24, 2026 14:1713,11027,553,90510,489,0001,048,0002,387,968
8Apr 24, 2026 14:1713,11335,315,74410,491,0001,049,0002,301,952
9Apr 24, 2026 14:1713,16225,070,17110,530,0001,053,0002,314,240