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 listMar 8, 2026 18:29zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Apr 30, 2026 16:34Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 16:34013,736,80301,355,000339,968No answer to stdout. Died or killed?
2Mar 8, 2026 18:292,98322,210,7402,625,00002,531,328
3Mar 8, 2026 18:293,00919,395,1492,648,00002,449,408
4Mar 8, 2026 18:293,15022,959,7302,772,00002,441,216