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 6, 2026 09:36Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 14:50Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 15:09037,525,47028,606,00002,113,536expected "23555194434267 ", got "18860090628962 "
2Oct 31, 2026 15:09027,357,28518,398,00002,113,536expected "39755993350913 ", got "31458381149092 "
3Oct 31, 2026 15:09038,164,67629,154,00002,113,536expected "23721985166004 ", got "18554138117059 "
4Jun 6, 2026 09:387,50314,030,6056,603,00002,113,536
5Jun 6, 2026 09:387,51814,014,3806,616,00002,113,536
6Jun 6, 2026 09:387,53114,028,7926,628,00002,113,536
7Jun 6, 2026 09:387,53414,073,3546,630,00002,113,536
8Jun 6, 2026 09:387,53614,348,4746,632,00002,113,536
9Jun 6, 2026 09:387,54214,061,3326,637,00002,113,536
10Jun 6, 2026 09:387,56414,105,1766,657,00002,113,536
11Jun 6, 2026 09:387,57614,092,6646,667,00002,113,536
12Jun 6, 2026 09:387,68014,130,7416,759,00002,113,536