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 21, 2026 23:33Josu San MartinJosu San MartinScore: 11,059Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2026 23:3610,89819,626,1278,586,0001,005,0002,117,632
2May 21, 2026 23:3610,91321,551,1338,596,0001,008,0002,113,536
3May 21, 2026 23:3610,91419,435,4228,601,0001,004,0002,117,632
4May 21, 2026 23:3611,04220,745,0819,717,00002,117,632
5May 21, 2026 23:3611,05921,410,1868,713,0001,019,0002,117,632
6May 21, 2026 23:3611,11421,939,7908,772,0001,009,0002,117,632
7May 21, 2026 23:3611,12622,165,3498,776,0001,015,0002,117,632
8May 21, 2026 23:3611,24019,026,1078,875,0001,017,0002,117,632
9May 21, 2026 23:3616,03823,270,91213,101,0001,013,0002,113,536