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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:38M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:3808,341,4691,100,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 06:3808,763,7431,097,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 06:38010,598,9811,356,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 8, 2026 05:103,36120,946,4301,972,000986,0002,277,376
5Feb 8, 2026 05:113,37323,370,4031,979,000989,0002,383,872
6Feb 8, 2026 05:103,40321,584,1901,997,000998,0002,387,968
7Feb 8, 2026 05:103,41318,400,2512,002,0001,001,0002,277,376
8Feb 8, 2026 05:113,41325,953,9532,002,0001,001,0002,396,160
9Feb 8, 2026 05:113,41919,523,4772,006,0001,003,0002,387,968
10Feb 8, 2026 05:123,48519,366,5111,022,0002,045,0002,396,160
11Feb 8, 2026 05:123,48824,722,4942,046,0001,023,0002,281,472
12Feb 8, 2026 05:123,51821,504,7001,032,0002,064,0002,396,160