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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:35M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:35010,246,2801,037,00002,113,536expected "6442459076 ", got "2305422249 "
2May 17, 2026 06:3508,388,0371,035,00002,113,536expected "6442459076 ", got "2305422249 "
3May 17, 2026 06:3509,194,7351,008,00002,113,536expected "6442459076 ", got "2305422249 "
4Feb 6, 2026 03:493,35521,156,7841,968,000984,0002,342,912
5Feb 6, 2026 03:493,37515,724,2141,980,000990,0002,347,008
6Feb 6, 2026 03:493,38023,824,0921,983,000991,0002,531,328
7Feb 6, 2026 03:493,40022,160,7851,995,000997,0002,347,008
8Feb 6, 2026 03:493,40624,126,3721,998,000999,0002,338,816
9Feb 6, 2026 03:493,46520,120,4102,033,0001,016,0002,342,912
10Feb 6, 2026 03:493,60819,332,4602,117,0001,058,0002,342,912
11Feb 6, 2026 03:494,08417,399,3953,594,00002,334,720
12Feb 6, 2026 03:494,17223,471,1103,671,00002,347,008