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 listJun 8, 2026 21:19Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 23:45Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 01:160156,143,354147,352,00002,113,536expected "27185732987966 ", got "24169192940807 "
2Sep 5, 2026 01:160165,828,443157,402,00002,113,536expected "24551368070242 ", got "21684069322327 "
3Sep 5, 2026 01:160158,696,902150,483,00002,113,536expected "27707156253326 ", got "23892710408205 "
4Jun 8, 2026 21:227,55014,129,5686,644,00002,113,536
5Jun 8, 2026 21:227,56814,166,8996,660,00002,113,536
6Jun 8, 2026 21:227,58014,140,1806,671,00002,113,536
7Jun 8, 2026 21:227,61317,115,8006,700,00002,113,536
8Jun 8, 2026 21:227,62514,196,4026,710,00002,113,536
9Jun 8, 2026 21:227,62914,230,0946,714,00002,113,536
10Jun 8, 2026 21:227,71314,214,6986,788,00002,113,536
11Jun 8, 2026 21:227,72614,304,1056,799,00002,113,536
12Jun 8, 2026 21:227,75514,306,4066,825,00002,113,536