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 listJan 18, 2026 04:41Josu San MartinJosu San MartinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Apr 24, 2026 17:49Victor Mercklé32.21CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 17:49020,310,0134,071,0002,035,0002,314,240expected "10947866042763 ", got "10947865394174 "
2Apr 24, 2026 17:49020,374,1674,047,0002,023,0002,318,336expected "10829714066797 ", got "10829713422272 "
3Apr 24, 2026 17:49024,179,8615,163,0001,032,0002,318,336expected "11248478716060 ", got "11248478070265 "
4Jan 18, 2026 04:4310,70632,591,2389,421,00002,461,696
5Jan 18, 2026 04:4310,70924,599,0588,377,0001,047,0002,265,088
6Jan 18, 2026 04:4310,71726,351,5549,431,00002,265,088
7Jan 18, 2026 04:4110,72227,164,1549,435,00002,281,472
8Jan 18, 2026 04:4310,73531,878,4319,447,00002,281,472
9Jan 18, 2026 04:4110,75524,954,9987,361,0002,103,0002,281,472
10Jan 18, 2026 04:4110,75927,195,3508,416,0001,052,0002,277,376
11Jan 18, 2026 04:4310,76131,233,8018,418,0001,052,0002,535,424
12Jan 18, 2026 04:4310,77326,753,5708,427,0001,053,0002,527,232
13Jan 18, 2026 04:4110,77626,929,7187,376,0002,107,0002,281,472
14Jan 18, 2026 04:4310,80228,690,4178,450,0001,056,0002,277,376
15Jan 18, 2026 04:4310,81824,314,0088,463,0001,057,0002,277,376
16Jan 18, 2026 04:4310,82723,097,7747,411,0002,117,0002,269,184
17Jan 18, 2026 04:4310,83027,659,3159,530,00002,281,472
18Jan 18, 2026 04:4310,84826,334,1647,425,0002,121,0002,273,280
19Jan 18, 2026 04:4310,85223,151,3678,489,0001,061,0002,523,136
20Jan 18, 2026 04:4110,89225,903,2668,520,0001,065,0002,383,872
21Jan 18, 2026 04:4310,89826,544,1638,525,0001,065,0002,273,280
22Jan 18, 2026 04:4110,91926,129,4057,474,0002,135,0002,269,184
23Jan 18, 2026 04:4310,92826,088,1038,549,0001,068,0002,531,328
24Jan 18, 2026 04:4310,94025,422,8378,558,0001,069,0002,281,472
25Jan 18, 2026 04:4110,94826,067,8777,493,0002,141,0002,281,472
26Jan 18, 2026 04:4310,95525,282,0448,569,0001,071,0002,523,136
27Jan 18, 2026 04:4110,95529,613,8658,569,0001,071,0002,269,184
28Jan 18, 2026 04:4110,97028,063,7688,582,0001,072,0002,326,528
29Jan 18, 2026 04:4311,01627,180,6779,694,00002,281,472
30Jan 18, 2026 04:4312,73428,793,8168,150,0003,056,0002,281,472