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 16, 2026 01:29zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:33M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:33010,020,9151,068,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 06:33011,288,3151,112,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 06:3309,962,6561,107,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 16, 2026 01:303,31119,511,9591,943,000971,0002,465,792
5Feb 16, 2026 01:343,31523,314,0701,945,000972,0002,449,408
6Feb 16, 2026 01:303,31818,016,8391,947,000973,0002,449,408
7Feb 16, 2026 01:303,34223,448,0011,961,000980,0002,277,376
8Feb 16, 2026 01:293,34419,948,8182,943,00002,461,696
9Feb 16, 2026 01:303,37823,582,5161,982,000991,0002,449,408
10Feb 16, 2026 01:313,39018,634,965994,0001,989,0002,449,408
11Feb 16, 2026 01:343,39024,563,5621,989,000994,0002,457,600
12Feb 16, 2026 01:293,39219,151,6561,990,000995,0002,449,408
13Feb 16, 2026 01:313,39924,365,3781,994,000997,0002,445,312
14Feb 16, 2026 01:293,40719,877,3111,999,000999,0002,531,328
15Feb 16, 2026 01:303,41420,934,8782,003,0001,001,0002,449,408
16Feb 16, 2026 01:293,42024,885,3432,007,0001,003,0002,449,408
17Feb 16, 2026 01:293,42323,432,0522,008,0001,004,0002,453,504
18Feb 16, 2026 01:303,44421,891,2122,021,0001,010,0002,453,504
19Feb 16, 2026 01:293,45521,196,3732,027,0001,013,0002,453,504
20Feb 16, 2026 01:313,55020,671,9122,083,0001,041,0002,277,376
21Feb 16, 2026 01:343,76117,276,3833,310,00002,449,408