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 22, 2026 08:48Josu San MartinJosu San MartinScore: 7,656Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 22, 2026 08:517,61415,746,9715,683,0001,018,0002,117,632
2Jun 22, 2026 08:517,65115,694,0795,724,0001,009,0002,117,632
3Jun 22, 2026 08:517,65215,758,5225,724,0001,010,0002,117,632
4Jun 22, 2026 08:517,65515,658,6045,711,0001,026,0002,117,632
5Jun 22, 2026 08:517,65615,680,7825,722,0001,016,0002,117,632
6Jun 22, 2026 08:517,65715,738,0895,719,0001,020,0002,117,632
7Jun 22, 2026 08:517,68115,754,4015,741,0001,019,0002,117,632
8Jun 22, 2026 08:517,74815,728,6945,730,0001,089,0002,117,632
9Jun 22, 2026 08:517,77015,880,6655,740,0001,098,0002,117,632