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 14, 2026 15:20limanjun99limanjun99Score: 17,776Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 14, 2026 15:2017,57437,885,76515,465,00002,433,024
2Apr 14, 2026 15:2017,62031,499,74212,405,0003,101,0002,428,928
3Apr 14, 2026 15:2017,64331,295,07714,491,0001,035,0002,428,928
4Apr 14, 2026 15:2017,64831,601,85015,530,00002,433,024
5Apr 14, 2026 15:2017,77635,407,96014,601,0001,042,0002,428,928
6Apr 14, 2026 15:2018,27039,833,86514,069,0002,009,0002,433,024
7Apr 14, 2026 15:2018,27839,572,10915,080,0001,005,0002,424,832
8Apr 14, 2026 15:2018,30243,170,58514,093,0002,013,0002,428,928
9Apr 14, 2026 15:2018,33342,923,41914,117,0002,016,0002,420,736