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 listJan 23, 2026 04:04Josu San MartinJosu San MartinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:40M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:41010,864,8731,844,00002,125,824expected "6442459076 ", got "2147490633 "
2May 17, 2026 08:41012,228,0431,846,00002,125,824expected "6442459076 ", got "2147490633 "
3May 17, 2026 08:41012,354,5421,857,00002,121,728expected "6442459076 ", got "2147490633 "
4Jan 23, 2026 04:0412,70631,679,3829,148,0002,033,0002,285,568
5Jan 18, 2026 05:1812,71726,443,3269,157,0002,034,0002,433,024
6Jan 18, 2026 05:1812,72229,107,8779,160,0002,035,0002,289,664
7Jan 18, 2026 05:1812,75827,468,9389,186,0002,041,0002,285,568
8Jan 23, 2026 04:0412,76627,976,9019,192,0002,042,0002,289,664
9Jan 23, 2026 04:0412,92628,109,3028,273,0003,102,0002,473,984