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 9, 2026 19:18Victor 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:07042,022,40530,453,0001,052,0002,183,168expected "23429608591763 ", got "18949864424683 "
2Oct 31, 2026 15:07030,075,70418,463,0001,047,0002,134,016expected "39735070501655 ", got "31495556847304 "
3Oct 31, 2026 15:07041,740,60330,140,0001,019,0002,183,168expected "23456445314169 ", got "18918285209912 "
4Jun 9, 2026 19:249,07016,720,3406,530,0001,452,0002,187,264
5Jun 9, 2026 19:249,10216,656,5836,823,0001,187,0002,183,168
6Jun 9, 2026 19:249,10416,713,0316,936,0001,076,0002,142,208
7Jun 9, 2026 19:249,10716,745,3656,939,0001,076,0002,142,208
8Jun 9, 2026 19:249,11916,782,4966,918,0001,107,0002,142,208
9Jun 9, 2026 19:249,12816,785,8156,581,0001,452,0002,187,264
10Jun 9, 2026 19:249,17116,854,4136,966,0001,105,0002,142,208
11Jun 9, 2026 19:249,22016,891,5396,644,0001,470,0002,142,208
12Jun 9, 2026 19:249,37316,902,4307,027,0001,222,0002,138,112