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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:24M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:24010,033,5331,078,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 05:24010,109,1131,162,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 05:24010,044,6831,075,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 6, 2026 02:073,33217,715,6931,955,000977,0002,359,296
5Feb 6, 2026 02:073,34518,991,7622,944,00002,367,488
6Feb 6, 2026 02:073,35519,584,6921,968,000984,0002,273,280
7Feb 6, 2026 02:063,35619,918,9912,953,00002,367,488
8Feb 6, 2026 02:073,35816,452,075985,0001,970,0002,510,848
9Feb 6, 2026 02:073,36818,370,6801,976,000988,0002,535,424
10Feb 6, 2026 02:073,36919,874,627988,0001,977,0002,359,296
11Feb 6, 2026 02:073,37218,050,8921,978,000989,0002,359,296
12Feb 6, 2026 02:063,37621,278,0431,981,000990,0002,277,376
13Feb 6, 2026 02:063,37617,144,7221,981,000990,0002,277,376
14Feb 6, 2026 02:063,39722,061,1361,993,000996,0002,367,488
15Feb 6, 2026 02:063,40020,615,344997,0001,995,0002,363,392
16Feb 6, 2026 02:073,40322,603,4721,997,000998,0002,359,296
17Feb 6, 2026 02:063,46116,347,8212,031,0001,015,0002,355,200
18Feb 6, 2026 02:073,57418,662,6792,097,0001,048,0002,277,376