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 listMar 20, 2026 17:10Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:44M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:45011,083,2811,410,00002,121,728expected "6442459076 ", got "14817470418 "stderr
2May 17, 2026 08:45018,545,8601,498,00002,121,728expected "6442459076 ", got "14817470418 "stderr
3May 17, 2026 08:45013,018,5911,374,00002,121,728expected "6442459076 ", got "14817470418 "stderr
4Mar 20, 2026 17:0614,31830,131,47912,600,00002,424,832
5Mar 20, 2026 17:0614,38627,658,42311,605,0001,055,0002,408,448
6Mar 20, 2026 17:0614,41134,662,83911,626,0001,056,0002,277,376
7Mar 20, 2026 17:0614,42533,451,83811,637,0001,057,0002,408,448
8Mar 20, 2026 17:1014,42745,823,17911,638,0001,058,0002,412,544
9Mar 20, 2026 17:0614,43439,179,96111,644,0001,058,0002,412,544
10Mar 20, 2026 17:0614,45231,789,19111,659,0001,059,0002,404,352
11Mar 20, 2026 17:1014,47532,144,38710,615,0002,123,0002,351,104
12Mar 20, 2026 17:1014,47730,041,00512,740,00002,416,640
13Mar 20, 2026 17:0614,52829,530,53811,720,0001,065,0002,281,472
14Mar 20, 2026 17:0614,91040,328,06911,103,0002,018,0002,473,984
15Mar 20, 2026 17:0614,95143,154,72312,218,000939,0002,277,376