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

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 14:37Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 14:46039,025,19229,957,00002,113,536expected "23597951664078 ", got "18591347227050 "
2Oct 31, 2026 14:46038,425,12829,334,00002,113,536expected "23349020772241 ", got "18880698626509 "
3Oct 31, 2026 14:46032,146,28122,711,00002,113,536expected "20553738603055 ", got "16316107651732 "
4Jun 29, 2026 15:084,65211,826,7984,094,00002,113,536
5Jun 29, 2026 15:084,69611,914,2804,133,00002,113,536
6Jun 29, 2026 15:084,76111,810,2614,190,00002,113,536
7Jun 29, 2026 15:084,77011,831,9904,198,00002,113,536
8Jun 29, 2026 15:084,78512,219,0974,211,00002,113,536
9Jun 29, 2026 15:084,78811,846,8334,214,00002,113,536
10Jun 29, 2026 15:084,80311,888,8764,227,00002,113,536
11Jun 29, 2026 15:084,84811,912,9164,267,00002,113,536
12Jun 29, 2026 15:084,85212,215,4684,270,00002,113,536