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:23Josu San MartinJosu San MartinScore: 12,876Success
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:2712,74827,556,22910,103,0001,116,0002,125,824
2May 17, 2026 18:2712,75421,338,53010,159,0001,065,0002,129,920
3May 17, 2026 18:2712,82020,381,05310,175,0001,107,0002,125,824
4May 17, 2026 18:2712,82221,351,39710,174,0001,110,0002,129,920
5May 17, 2026 18:2712,87623,498,11210,191,0001,140,0002,125,824
6May 17, 2026 18:2712,91723,387,97410,234,0001,133,0002,125,824
7May 17, 2026 18:2713,01021,335,55910,299,0001,150,0002,125,824
8May 17, 2026 18:2713,06120,512,17010,340,0001,154,0002,125,824
9May 17, 2026 18:2713,18022,754,56410,526,0001,073,0002,125,824