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:40Josu San MartinJosu San MartinScore: 54,918Success
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:4354,41759,037,49346,883,0001,004,0002,113,536
2May 21, 2026 23:4354,81958,119,27947,227,0001,014,0002,113,536
3May 21, 2026 23:4354,82759,190,97147,193,0001,055,0002,113,536
4May 21, 2026 23:4354,83258,047,36147,243,0001,010,0002,113,536
5May 21, 2026 23:4354,91857,461,17747,328,0001,000,0002,113,536
6May 21, 2026 23:4355,02059,376,11648,418,00002,113,536
7May 21, 2026 23:4356,03759,851,64848,305,0001,008,0002,113,536
8May 21, 2026 23:4356,25364,543,27848,455,0001,048,0002,113,536
9May 21, 2026 23:4356,37560,058,63548,547,0001,063,0002,113,536