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 listFeb 6, 2026 21:02vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:27M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:2709,428,6361,203,00002,117,632expected "6442459076 ", got " "stderr
2May 17, 2026 05:2709,016,4041,197,00002,117,632expected "6442459076 ", got " "stderr
3May 17, 2026 05:2709,526,9241,191,00002,117,632expected "6442459076 ", got " "stderr
4Feb 6, 2026 21:023,37619,912,140990,0001,981,0002,502,656
5Feb 6, 2026 21:023,39921,803,788997,0001,994,0002,277,376
6Feb 6, 2026 21:023,41720,194,9411,002,0002,005,0002,498,560
7Feb 6, 2026 21:023,42724,515,2261,005,0002,011,0002,502,656
8Feb 6, 2026 21:023,45024,632,7271,012,0002,024,0002,498,560
9Feb 6, 2026 21:023,45319,402,5801,013,0002,026,0002,498,560
10Feb 6, 2026 21:023,45317,956,0701,013,0002,026,0002,490,368
11Feb 6, 2026 21:023,46121,760,8981,015,0002,031,0002,281,472
12Feb 6, 2026 21:023,48519,994,1631,022,0002,045,0002,490,368