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 18, 2026 15:33limanjun99limanjun99Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 5, 2026 20:55Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 20:59047,769,97636,194,0001,076,0002,113,536expected "20661922970599 ", got "5258043696117"
2Oct 5, 2026 20:59048,341,66536,565,0001,262,0002,113,536expected "20782850643037 ", got "5175398998665"
3Oct 5, 2026 20:59033,824,56422,359,0001,037,0002,113,536expected "39983740063212 ", got "9053837019868"
4Mar 18, 2026 15:3335,24156,280,54929,012,0002,000,0002,453,504
5Mar 18, 2026 15:3335,28361,581,67429,046,0002,003,0002,379,776
6Mar 18, 2026 15:3335,29257,232,26029,054,0002,003,0002,379,776
7Mar 18, 2026 15:3335,38855,347,54429,132,0002,009,0002,371,584
8Mar 18, 2026 15:3335,39958,054,52929,142,0002,009,0002,379,776
9Mar 18, 2026 15:3335,41855,002,62629,158,0002,010,0002,449,408
10Mar 18, 2026 15:3335,44152,251,17131,188,00002,383,872
11Mar 18, 2026 15:3335,47751,893,57229,206,0002,014,0002,375,680
12Mar 18, 2026 15:3335,50657,985,67529,230,0002,015,0002,375,680