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:20Josu San MartinJosu San MartinScore: 11,913Success
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:2211,76119,566,7279,314,0001,036,0002,113,536
2May 19, 2026 09:2211,78122,959,2219,340,0001,028,0002,117,632
3May 19, 2026 09:2211,87019,734,6269,409,0001,037,0002,117,632
4May 19, 2026 09:2211,89619,637,6379,334,0001,135,0002,113,536
5May 19, 2026 09:2211,91320,118,1239,433,0001,051,0002,113,536
6May 19, 2026 09:2211,91820,045,8099,342,0001,146,0002,113,536
7May 19, 2026 09:2211,92721,674,2049,360,0001,136,0002,113,536
8May 19, 2026 09:2211,92722,323,8989,359,0001,137,0002,117,632
9May 19, 2026 09:2211,93520,300,5159,371,0001,132,0002,113,536