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 19, 2026 05:12limanjun99limanjun99Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 5, 2026 21:07Andrew Epstein11.36CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 21:11035,165,84223,620,0001,110,0002,113,536expected "20714582682188 ", got "10644178298914"
2Oct 5, 2026 21:11033,554,53822,044,0001,023,0002,117,632expected "23491927934106 ", got "13237221201384"
3Oct 5, 2026 21:11035,458,39623,344,0001,027,0002,117,632expected "23534990160133 ", got "13619817214619"
4Mar 19, 2026 05:1224,95645,785,06219,965,0001,996,0002,310,144
5Mar 19, 2026 05:1224,97652,790,34119,981,0001,998,0002,379,776
6Mar 19, 2026 05:1225,03047,992,63821,025,0001,001,0002,306,048
7Mar 19, 2026 05:1225,23150,274,98920,185,0002,018,0002,453,504
8Mar 19, 2026 05:1225,25044,882,25420,200,0002,020,0002,273,280
9Mar 19, 2026 05:1225,26040,305,98120,209,0002,020,0002,306,048
10Mar 19, 2026 05:1225,28148,498,71420,225,0002,022,0002,445,312
11Mar 19, 2026 05:1225,93544,022,00921,831,000992,0002,404,352
12Mar 19, 2026 05:1226,45753,361,50921,258,0002,024,0002,441,216