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 16:05vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:04M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:05010,294,6791,192,00002,113,536expected "6442459076 ", got " "
2May 17, 2026 07:0508,432,1011,193,00002,113,536expected "6442459076 ", got " "
3May 17, 2026 07:05010,191,3901,186,00002,113,536expected "6442459076 ", got " "
4Feb 5, 2026 16:053,46419,206,1091,016,0002,032,0002,490,368
5Feb 5, 2026 16:053,46526,208,2391,016,0002,033,0002,502,656
6Feb 5, 2026 16:053,47226,163,8161,018,0002,037,0002,490,368
7Feb 5, 2026 16:053,47519,015,8021,019,0002,039,0002,535,424
8Feb 5, 2026 16:053,48120,631,1511,021,0002,042,0002,281,472
9Feb 5, 2026 16:053,50218,651,8461,027,0002,055,0002,277,376
10Feb 5, 2026 16:053,50819,238,4981,029,0002,058,0002,502,656
11Feb 5, 2026 16:053,52221,062,6851,033,0002,066,0002,502,656
12Feb 5, 2026 16:053,68015,504,9391,079,0002,159,0002,490,368