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 5, 2026 15:59vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:35M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:3609,173,2271,187,00002,113,536expected "6442459076 ", got " "
2May 17, 2026 08:36010,116,5161,193,00002,113,536expected "6442459076 ", got " "
3May 17, 2026 08:36011,355,7371,186,00002,113,536expected "6442459076 ", got " "
4Feb 5, 2026 16:003,45720,319,6611,014,0002,028,0002,498,560
5Feb 5, 2026 16:003,46025,765,1081,015,0002,030,0002,498,560
6Feb 5, 2026 16:003,46520,016,1101,016,0002,033,0002,281,472
7Feb 5, 2026 16:003,46720,681,8351,017,0002,034,0002,281,472
8Feb 5, 2026 16:003,48518,611,0611,022,0002,045,0002,498,560
9Feb 5, 2026 16:003,48926,212,2271,023,0002,047,0002,494,464
10Feb 5, 2026 15:593,49122,067,2871,024,0002,048,0002,502,656
11Feb 5, 2026 16:003,50616,230,8331,028,0002,057,0002,498,560
12Feb 5, 2026 15:593,50617,357,9521,028,0002,057,0002,498,560
13Feb 5, 2026 16:003,51322,424,6771,030,0002,061,0002,498,560
14Feb 5, 2026 15:593,51620,294,9501,031,0002,063,0002,494,464
15Feb 5, 2026 15:593,52218,591,2661,033,0002,066,0002,498,560
16Feb 5, 2026 15:593,52324,982,3061,033,0002,067,0002,494,464
17Feb 5, 2026 16:003,52516,548,7711,034,0002,068,0002,494,464
18Feb 5, 2026 15:593,52814,557,1671,035,0002,070,0002,273,280