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 09:12Josu San MartinJosu San MartinScore: 7,515Success
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 09:157,45415,549,9805,541,0001,019,0002,117,632
2Jun 22, 2026 09:157,46715,529,3845,546,0001,025,0002,117,632
3Jun 22, 2026 09:157,49815,529,3945,593,0001,006,0002,117,632
4Jun 22, 2026 09:157,50615,588,0365,589,0001,017,0002,117,632
5Jun 22, 2026 09:157,51515,639,2595,604,0001,010,0002,117,632
6Jun 22, 2026 09:157,51715,633,8085,593,0001,022,0002,117,632
7Jun 22, 2026 09:157,57115,565,7995,576,0001,087,0002,117,632
8Jun 22, 2026 09:157,58415,543,0445,588,0001,086,0002,117,632
9Jun 22, 2026 09:157,58815,562,1605,582,0001,096,0002,117,632