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 22, 2026 00:37Josu San MartinJosu San MartinScore: 11,946Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2026 00:3911,91921,804,6258,407,0002,082,0002,117,632
2May 22, 2026 00:3911,93519,750,3768,433,0002,070,0002,117,632
3May 22, 2026 00:3911,93721,822,2398,427,0002,078,0002,113,536
4May 22, 2026 00:3911,94519,714,9978,432,0002,080,0002,117,632
5May 22, 2026 00:3911,94621,232,0618,424,0002,089,0002,117,632
6May 22, 2026 00:3911,94622,031,2928,420,0002,093,0002,113,536
7May 22, 2026 00:3912,03021,497,9648,483,0002,104,0002,117,632
8May 22, 2026 00:3912,07220,234,7318,498,0002,126,0002,117,632
9May 22, 2026 00:3912,08219,916,3448,505,0002,128,0002,113,536