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 8, 2026 20:35zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:07M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:0709,775,8971,023,00002,113,536expected "6442459076 ", got "2305422782 "
2May 17, 2026 07:0708,237,5661,025,00002,113,536expected "6442459076 ", got "2305422782 "
3May 17, 2026 07:0708,563,9751,024,00002,113,536expected "6442459076 ", got "2305422782 "
4Feb 8, 2026 20:363,32518,168,4251,951,000975,0002,387,968
5Feb 8, 2026 20:363,33917,182,8411,959,000979,0002,392,064
6Feb 8, 2026 20:363,35120,331,1301,966,000983,0002,396,160
7Feb 8, 2026 20:353,37621,431,8681,981,000990,0002,396,160
8Feb 8, 2026 20:353,38016,148,1241,983,000991,0002,392,064
9Feb 8, 2026 20:353,39021,745,3481,989,000994,0002,387,968
10Feb 8, 2026 20:363,47522,863,7612,039,0001,019,0002,396,160
11Feb 8, 2026 20:353,47720,738,7301,020,0002,040,0002,392,064
12Feb 8, 2026 20:363,51921,573,8952,065,0001,032,0002,396,160
13Feb 8, 2026 20:353,65820,113,0002,146,0001,073,0002,387,968
14Feb 8, 2026 20:364,19922,840,5833,695,00002,387,968
15Feb 8, 2026 20:354,26525,316,7073,753,00002,387,968