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:31Josu San MartinJosu San MartinScore: 7,561Success
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:337,45615,592,7325,549,0001,013,0002,117,632
2Jun 22, 2026 09:337,47015,624,5515,559,0001,015,0002,117,632
3Jun 22, 2026 09:337,51815,693,3655,578,0001,038,0002,117,632
4Jun 22, 2026 09:337,55515,593,8765,548,0001,101,0002,117,632
5Jun 22, 2026 09:337,56115,783,0535,555,0001,099,0002,117,632
6Jun 22, 2026 09:337,56715,653,4565,572,0001,087,0002,117,632
7Jun 22, 2026 09:337,58715,607,1505,567,0001,110,0002,117,632
8Jun 22, 2026 09:337,61115,656,6235,587,0001,111,0002,117,632
9Jun 22, 2026 09:337,70415,627,2895,667,0001,113,0002,117,632