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:14Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 23:16Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 00:500106,938,91998,560,00002,113,536expected "29351246686779 ", got "24878079438011 "
2Sep 5, 2026 00:500106,075,44397,653,00002,113,536expected "29327240520052 ", got "25080930507564 "
3Sep 5, 2026 00:500109,755,456101,371,00002,113,536expected "26641041259432 ", got "23248715806667 "
4Jun 8, 2026 21:168,14514,631,6377,168,00002,113,536
5Jun 8, 2026 21:168,21914,674,8817,233,00002,113,536
6Jun 8, 2026 21:168,23714,759,6857,249,00002,113,536
7Jun 8, 2026 21:168,24614,763,6637,257,00002,113,536
8Jun 8, 2026 21:168,26214,670,5857,271,00002,113,536
9Jun 8, 2026 21:168,26214,761,9227,271,00002,113,536
10Jun 8, 2026 21:168,26314,675,5947,272,00002,113,536
11Jun 8, 2026 21:168,43014,926,2637,419,00002,113,536
12Jun 8, 2026 21:168,56915,044,1387,541,00002,113,536