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 20, 2026 19:48A_ShamanA_ShamanScore: 173,014Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 20, 2026 19:50171,429160,089,139143,601,0007,257,0002,113,536
2Jun 20, 2026 19:50172,080160,638,309144,121,0007,310,0002,113,536
3Jun 20, 2026 19:50172,177160,736,382144,060,0007,456,0002,113,536
4Jun 20, 2026 19:50172,659161,181,222144,757,0007,183,0002,113,536
5Jun 20, 2026 19:50173,014161,464,741144,871,0007,382,0002,113,536
6Jun 20, 2026 19:50173,125161,969,749145,074,0007,276,0002,113,536
7Jun 20, 2026 19:50173,447163,088,727145,416,0007,218,0002,113,536
8Jun 20, 2026 19:50173,969162,836,906145,744,0007,349,0002,113,536
9Jun 20, 2026 19:50174,002162,900,701145,764,0007,358,0002,113,536