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

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 03:48Tomislav Tunkovic57.83CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 05:07024,016,84315,059,00002,113,536expected "27542699564412 ", got "23896813562434 "
2Sep 5, 2026 05:07023,532,44915,271,00002,113,536expected "26718144036193 ", got "23462843564425 "
3Sep 5, 2026 05:07034,327,30314,883,00002,113,536expected "30451341050515 ", got "25998370402647 "
4May 17, 2026 19:249,65117,258,8148,493,00002,113,536
5May 17, 2026 19:249,65119,166,8418,493,00002,113,536
6May 17, 2026 19:249,66416,636,8738,505,00002,113,536
7May 17, 2026 19:249,67016,705,0508,510,00002,113,536
8May 17, 2026 19:249,67118,539,3498,511,00002,113,536
9May 17, 2026 19:249,67316,853,3368,513,00002,113,536
10May 17, 2026 19:249,67917,074,1048,518,00002,113,536
11May 17, 2026 19:249,68518,970,3148,523,00002,113,536
12May 17, 2026 19:249,69817,227,8508,535,00002,113,536