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 15, 2026 01:41zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:22M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:22010,493,3671,086,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 05:2208,256,5111,032,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 05:2208,265,0081,002,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 15, 2026 01:413,31119,713,7731,943,000971,0002,514,944
5Feb 15, 2026 01:453,31519,021,1341,945,000972,0002,416,640
6Feb 15, 2026 01:403,32821,568,7021,953,000976,0002,424,832
7Feb 15, 2026 01:403,33422,907,6751,956,000978,0002,510,848
8Feb 15, 2026 01:453,33923,535,0801,959,000979,0002,420,736
9Feb 15, 2026 01:453,34215,710,7142,941,00002,527,232
10Feb 15, 2026 01:413,44018,353,7052,018,0001,009,0002,416,640
11Feb 15, 2026 01:413,44317,081,9312,020,0001,010,0002,424,832
12Feb 15, 2026 01:404,18021,809,5023,678,00002,420,736