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 listSep 12, 2026 09:09Haha ExpertHaha ExpertScore: 129,381Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 12, 2026 09:11128,711121,814,642113,266,00002,117,632
2Sep 12, 2026 09:11129,006123,398,999113,526,00002,117,632
3Sep 12, 2026 09:11129,062122,119,990113,575,00002,117,632
4Sep 12, 2026 09:11129,086122,037,797112,591,0001,005,0002,117,632
5Sep 12, 2026 09:11129,381123,164,507113,856,00002,117,632
6Sep 12, 2026 09:11129,409122,897,656113,880,00002,117,632
7Sep 12, 2026 09:11129,413122,506,717113,884,00002,117,632
8Sep 12, 2026 09:11129,464123,221,206113,929,00002,117,632
9Sep 12, 2026 09:11129,604122,611,556114,052,00002,117,632