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 listJan 17, 2026 15:28Josu San MartinJosu San MartinScore: 20,359Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 15:2820,03039,425,63817,626,00002,371,584
2Jan 17, 2026 15:2820,10535,359,45417,692,00002,453,504
3Jan 17, 2026 15:2820,12440,457,60016,668,0001,041,0002,457,600
4Jan 17, 2026 15:2820,35933,431,31117,916,00002,453,504
5Jan 17, 2026 15:2820,40638,641,64015,962,0001,995,0002,457,600
6Jan 17, 2026 15:2820,63934,458,79816,144,0002,018,0002,523,136