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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:02M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:0208,483,2461,110,00002,113,536expected "6442459076 ", got "2305422782 "
2May 17, 2026 07:0209,449,5561,076,00002,113,536expected "6442459076 ", got "2305422782 "
3May 17, 2026 07:02010,322,4501,032,00002,113,536expected "6442459076 ", got "2305422782 "
4Feb 8, 2026 22:073,33920,213,9511,959,000979,0002,396,160
5Feb 8, 2026 22:073,44026,553,0512,018,0001,009,0002,531,328
6Feb 8, 2026 22:163,44019,338,8402,018,0001,009,0002,531,328
7Feb 8, 2026 22:163,45719,003,5352,028,0001,014,0002,387,968
8Feb 8, 2026 22:073,45816,266,6611,014,0002,029,0002,531,328
9Feb 8, 2026 22:213,46417,979,7752,032,0001,016,0002,392,064
10Feb 8, 2026 22:073,46720,576,5132,034,0001,017,0002,383,872
11Feb 8, 2026 22:073,47518,812,8782,039,0001,019,0002,392,064
12Feb 8, 2026 22:073,47523,989,8252,039,0001,019,0002,387,968
13Feb 8, 2026 22:213,49919,058,1892,053,0001,026,0002,392,064
14Feb 8, 2026 22:163,51117,210,4511,030,0002,060,0002,392,064
15Feb 8, 2026 22:213,70318,206,6511,086,0002,173,0002,387,968