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 17, 2026 18:17Josu San MartinJosu San MartinScore: 12,963Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 18:2012,92021,091,02610,274,0001,096,0002,129,920
2May 17, 2026 18:2012,93022,309,09610,286,0001,093,0002,125,824
3May 17, 2026 18:2012,94522,435,90910,256,0001,136,0002,129,920
4May 17, 2026 18:2012,94720,564,97110,339,0001,055,0002,125,824
5May 17, 2026 18:2012,96321,326,79710,297,0001,111,0002,125,824
6May 17, 2026 18:2013,00421,386,59910,359,0001,085,0002,125,824
7May 17, 2026 18:2013,00922,540,12410,295,0001,153,0002,129,920
8May 17, 2026 18:2013,02921,418,73310,338,0001,128,0002,129,920
9May 17, 2026 18:2013,03022,990,09310,362,0001,105,0002,125,824