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 29, 2026 18:26Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 23:18Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 00:510154,626,071145,343,0001,006,0002,138,112expected "31002746580854 ", got "26444700716915 "
2Sep 5, 2026 00:510156,975,633147,483,0001,011,0002,138,112expected "31727098373006 ", got "26837529838097 "
3Sep 5, 2026 00:510163,365,735153,994,0001,006,0002,138,112expected "28734635655538 ", got "24673800753974 "
4Jun 29, 2026 18:295,66115,672,5733,712,0001,270,0002,142,208
5Jun 29, 2026 18:295,67615,337,5233,777,0001,218,0002,142,208
6Jun 29, 2026 18:295,68613,609,4893,619,0001,385,0002,142,208
7Jun 29, 2026 18:295,70314,212,2373,872,0001,147,0002,142,208
8Jun 29, 2026 18:295,73612,768,2343,918,0001,130,0002,142,208
9Jun 29, 2026 18:295,73615,552,6643,789,0001,259,0002,142,208
10Jun 29, 2026 18:295,77714,099,7413,904,0001,180,0002,142,208
11Jun 29, 2026 18:295,86315,690,3263,861,0001,299,0002,142,208
12Jun 29, 2026 18:295,93215,940,8003,900,0001,321,0002,142,208