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 19, 2026 09:31Josu San MartinJosu San MartinScore: 11,801Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2026 09:3511,73520,643,2089,320,0001,007,0002,117,632
2May 19, 2026 09:3511,74519,434,7939,328,0001,008,0002,117,632
3May 19, 2026 09:3511,74720,365,8849,336,0001,002,0002,117,632
4May 19, 2026 09:3511,76019,792,8189,347,0001,002,0002,117,632
5May 19, 2026 09:3511,80119,957,9669,333,0001,052,0002,117,632
6May 19, 2026 09:3511,82022,136,2749,336,0001,066,0002,117,632
7May 19, 2026 09:3511,83922,417,0419,348,0001,071,0002,117,632
8May 19, 2026 09:3511,85719,591,2899,352,0001,083,0002,117,632
9May 19, 2026 09:3511,92527,851,7929,425,0001,069,0002,113,536