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 listJun 21, 2026 21:52Josu San MartinJosu San MartinScore: 58,967Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 22:0058,82660,815,40349,707,0002,060,0002,113,536
2Jun 21, 2026 22:0058,86060,881,53949,729,0002,068,0002,113,536
3Jun 21, 2026 22:0058,91860,874,82549,776,0002,072,0002,113,536
4Jun 21, 2026 22:0058,91960,858,92849,773,0002,076,0002,113,536
5Jun 21, 2026 22:0058,96760,849,82649,804,0002,087,0002,113,536
6Jun 21, 2026 22:0059,04360,933,28849,887,0002,071,0002,113,536
7Jun 21, 2026 22:0059,06862,375,19649,876,0002,104,0002,113,536
8Jun 21, 2026 22:0059,14361,001,38049,965,0002,081,0002,113,536
9Jun 21, 2026 22:0059,36461,255,35450,181,0002,060,0002,113,536