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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:42M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:4208,303,9251,157,00002,113,536expected "6442459076 ", got "2305422249 "
2May 17, 2026 06:4209,300,5241,140,00002,113,536expected "6442459076 ", got "2305422249 "
3May 17, 2026 06:4208,723,9271,149,00002,113,536expected "6442459076 ", got "2305422249 "
4Feb 6, 2026 02:373,35215,995,9651,967,000983,0002,359,296
5Feb 6, 2026 02:373,36823,427,6031,976,000988,0002,363,392
6Feb 6, 2026 02:373,37222,374,3921,978,000989,0002,363,392
7Feb 6, 2026 02:393,37622,267,9461,981,000990,0002,277,376
8Feb 6, 2026 02:393,38917,816,333994,0001,988,0002,527,232
9Feb 6, 2026 02:373,42618,555,8232,010,0001,005,0002,359,296
10Feb 6, 2026 02:373,44120,054,7752,019,0001,009,0002,363,392
11Feb 6, 2026 02:383,48817,915,8631,023,0002,046,0002,355,200
12Feb 6, 2026 02:383,51118,835,2081,030,0002,060,0002,363,392
13Feb 6, 2026 02:373,53917,114,3351,038,0002,076,0002,359,296
14Feb 6, 2026 02:383,85122,439,1393,389,00002,359,296
15Feb 6, 2026 02:394,18815,690,0873,685,00002,351,104