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 listMay 5, 2026 01:45olliecrowolliecrowScore: 11,884Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2026 01:4811,80727,615,1799,276,0001,115,0002,461,696
2May 5, 2026 01:4811,82223,699,9529,305,0001,099,0002,449,408
3May 5, 2026 01:4811,85728,306,4119,304,0001,131,0002,465,792
4May 5, 2026 01:4811,86326,778,8519,295,0001,145,0002,453,504
5May 5, 2026 01:4811,88424,586,1069,344,0001,114,0002,457,600
6May 5, 2026 01:4811,88828,999,6649,331,0001,131,0002,453,504
7May 5, 2026 01:4811,90929,902,3549,342,0001,138,0002,457,600
8May 5, 2026 01:4811,94829,922,3149,394,0001,121,0002,449,408
9May 5, 2026 01:4811,95727,034,5679,384,0001,139,0002,445,312