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 6, 2026 03:01vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:03M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:03011,315,5971,203,00002,117,632expected "6442459076 ", got " "stderr
2May 17, 2026 07:0308,978,7591,203,00002,117,632expected "6442459076 ", got " "stderr
3May 17, 2026 07:0308,920,9671,177,00002,117,632expected "6442459076 ", got " "stderr
4Feb 6, 2026 03:003,45722,336,8991,014,0002,028,0002,494,464
5Feb 6, 2026 03:003,45820,290,2251,014,0002,029,0002,494,464
6Feb 6, 2026 03:003,46523,623,7301,016,0002,033,0002,502,656
7Feb 6, 2026 03:013,47518,157,7461,019,0002,039,0002,281,472
8Feb 6, 2026 03:013,47722,566,5881,020,0002,040,0002,277,376
9Feb 6, 2026 03:013,70216,630,6981,086,0002,172,0002,494,464