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 08:28Victor 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:03026,621,92017,673,00002,113,536expected "39796209207319 ", got "31361746374232 "
2Oct 31, 2026 15:03037,807,79528,323,00002,113,536expected "23406239943766 ", got "18855960687926 "
3Oct 31, 2026 15:03038,399,45129,389,00002,113,536expected "23395861201266 ", got "18895400336707 "
4Jun 6, 2026 08:307,94214,408,3136,989,00002,113,536
5Jun 6, 2026 08:307,98414,472,4177,026,00002,113,536
6Jun 6, 2026 08:307,99014,415,7717,032,00002,113,536
7Jun 6, 2026 08:307,99414,441,3447,035,00002,113,536
8Jun 6, 2026 08:307,99414,464,9797,035,00002,113,536
9Jun 6, 2026 08:308,07816,168,1617,109,00002,113,536
10Jun 6, 2026 08:308,08914,403,5877,119,00002,113,536
11Jun 6, 2026 08:308,09314,455,0247,122,00002,113,536
12Jun 6, 2026 08:308,20614,674,1417,222,00002,113,536