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 7, 2026 04:53zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:44M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:4408,226,4491,020,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 06:4408,587,6911,029,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 06:44011,264,1881,088,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 7, 2026 04:553,33917,006,0961,959,000979,0002,351,104
5Feb 7, 2026 04:553,34216,855,6771,961,000980,0002,342,912
6Feb 7, 2026 04:543,34218,157,3971,961,000980,0002,351,104
7Feb 7, 2026 04:543,34420,936,4631,962,000981,0002,351,104
8Feb 7, 2026 04:543,36917,304,7981,977,000988,0002,347,008
9Feb 7, 2026 04:543,37221,102,3941,978,000989,0002,347,008
10Feb 7, 2026 04:563,37217,364,7521,978,000989,0002,347,008
11Feb 7, 2026 04:543,38219,061,3431,984,000992,0002,506,752
12Feb 7, 2026 04:533,39022,347,8581,989,000994,0002,355,200
13Feb 7, 2026 04:543,40621,144,549999,0001,998,0002,355,200
14Feb 7, 2026 04:563,44818,212,6802,023,0001,011,0002,355,200
15Feb 7, 2026 04:553,45118,146,5772,025,0001,012,0002,535,424
16Feb 7, 2026 04:543,46717,373,7592,034,0001,017,0002,347,008
17Feb 7, 2026 04:533,47020,434,7562,036,0001,018,0002,347,008
18Feb 7, 2026 04:543,47024,759,7412,036,0001,018,0002,347,008
19Feb 7, 2026 04:543,47418,009,2642,038,0001,019,0002,342,912
20Feb 7, 2026 04:563,47723,494,6282,040,0001,020,0002,355,200
21Feb 7, 2026 04:533,52319,795,7352,067,0001,033,0002,535,424
22Feb 7, 2026 04:544,06120,657,0103,574,00002,338,816
23Feb 7, 2026 04:544,22820,111,5772,481,0001,240,0002,342,912
24Feb 7, 2026 04:544,46425,287,1313,928,00002,510,848