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 27, 2026 15:00Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 23:05Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 00:360159,334,974148,367,0001,242,0002,129,920expected "28701273584791 ", got "23785276921012 "
2Sep 5, 2026 00:360161,545,320148,078,0001,245,0002,129,920expected "25828652753152 ", got "22706190703592 "
3Sep 5, 2026 00:360150,476,319139,573,0001,228,0002,129,920expected "27539969764404 ", got "24344266629261 "
4Jun 27, 2026 15:066,31414,637,9034,249,0001,308,0002,134,016
5Jun 27, 2026 15:066,43014,707,8884,239,0001,420,0002,134,016
6Jun 27, 2026 15:066,44714,598,4444,319,0001,355,0002,134,016
7Jun 27, 2026 15:066,47614,929,7834,378,0001,321,0002,134,016
8Jun 27, 2026 15:066,47914,828,0354,234,0001,468,0002,134,016
9Jun 27, 2026 15:066,49014,686,3414,233,0001,479,0002,134,016
10Jun 27, 2026 15:066,51314,770,3084,234,0001,498,0002,134,016
11Jun 27, 2026 15:066,56714,832,2144,316,0001,463,0002,179,072
12Jun 27, 2026 15:066,58014,832,5354,287,0001,504,0002,134,016