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 28, 2026 10:30Dominique GarmierDominique GarmierError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Apr 24, 2026 18:08Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 18:08024,371,99417,652,0001,038,0002,314,240expected "10954266052397 ", got "10954265697009 "
2Apr 24, 2026 18:08032,973,86716,488,0001,030,0002,441,216expected "11016423011788 ", got "11016422662885 "
3Apr 24, 2026 18:08024,740,54716,147,0002,018,0002,445,312expected "11065885541543 ", got "11065885185706 "
4Mar 28, 2026 10:3010,35623,866,7377,088,0002,025,0002,478,080
5Mar 28, 2026 10:3010,35827,076,2218,103,0001,012,0002,506,752
6Mar 28, 2026 10:3010,54526,160,6598,249,0001,031,0002,519,040