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 listFeb 14, 2026 11:51olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 5, 2026 21:07Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 21:08056,513,06447,797,00002,113,536expected "23569935833109 ", got "18689500205276 "
2Oct 5, 2026 21:08039,950,43130,969,00002,113,536expected "20569961576352 ", got "16075280790439 "
3Oct 5, 2026 21:08044,631,03435,917,00002,113,536expected "20807840924783 ", got "15815922371425 "
4Feb 14, 2026 11:5142,26662,146,25136,189,0001,005,0002,502,656
5Feb 14, 2026 11:5142,37258,287,21237,287,00002,498,560
6Feb 14, 2026 11:5142,39460,151,27737,307,00002,498,560
7Feb 14, 2026 11:5142,42658,623,73737,335,00002,502,656
8Feb 14, 2026 11:5142,44861,007,42037,354,00002,490,368
9Feb 14, 2026 11:5142,46362,546,01937,367,00002,502,656
10Feb 14, 2026 11:5142,50559,889,65737,404,00002,498,560
11Feb 14, 2026 11:5142,55260,151,67237,446,00002,535,424
12Feb 14, 2026 11:5142,71859,901,86637,592,00002,494,464