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 8, 2026 03:11zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:15M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:1509,113,7161,004,00002,113,536expected "6442459076 ", got "2305422668 "
2May 17, 2026 05:15010,774,5901,073,00002,113,536expected "6442459076 ", got "2305422668 "
3May 17, 2026 05:1508,945,9771,015,00002,113,536expected "6442459076 ", got "2305422668 "
4Mar 8, 2026 03:113,06723,327,2052,699,00002,453,504
5Mar 8, 2026 03:113,14218,649,9912,765,00002,453,504
6Mar 8, 2026 03:113,16319,575,4982,783,00002,445,312
7Mar 8, 2026 03:123,18218,196,0102,800,00002,449,408
8Mar 8, 2026 03:113,19317,138,4301,405,0001,405,0002,445,312
9Mar 8, 2026 03:123,19318,173,7442,810,00002,453,504
10Mar 8, 2026 03:113,20119,068,0852,817,00002,449,408
11Mar 8, 2026 03:113,31022,824,5951,942,000971,0002,445,312
12Mar 8, 2026 03:123,31722,837,3052,919,00002,453,504
13Mar 8, 2026 03:113,32420,258,8562,925,00002,453,504
14Mar 8, 2026 03:113,41020,452,3862,001,0001,000,0002,441,216
15Mar 8, 2026 03:113,65223,832,0132,143,0001,071,0002,449,408