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 03:22zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:53M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:5308,708,0001,107,00002,113,536expected "6442459076 ", got "6480813784 "
2May 17, 2026 06:5308,333,1681,104,00002,113,536expected "6442459076 ", got "6480813784 "
3May 17, 2026 06:5309,986,4191,100,00002,113,536expected "6442459076 ", got "6480813784 "
4Feb 8, 2026 03:223,32418,893,0981,950,000975,0002,375,680
5Feb 8, 2026 03:223,33919,420,2341,959,000979,0002,375,680
6Feb 8, 2026 03:223,34124,437,4161,960,000980,0002,375,680
7Feb 8, 2026 03:223,43417,094,1272,015,0001,007,0002,375,680
8Feb 8, 2026 03:223,45721,090,9832,028,0001,014,0002,371,584
9Feb 8, 2026 03:223,46820,393,0572,035,0001,017,0002,375,680
10Feb 8, 2026 03:223,49818,939,8151,026,0002,052,0002,375,680
11Feb 8, 2026 03:223,49918,603,6492,053,0001,026,0002,371,584
12Feb 8, 2026 03:224,14022,890,6153,643,00002,367,488