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 10, 2025 14:53zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:03M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:0308,792,2491,136,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 07:0309,878,0101,119,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 07:03010,483,5521,218,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 10, 2025 16:453,37623,332,0971,981,000990,0002,519,040
5Jan 10, 2025 14:483,40022,725,4051,995,000997,0002,510,848
6Jan 10, 2025 14:483,43017,315,2312,012,0001,006,0002,523,136
7Jan 10, 2025 16:453,44319,514,7382,020,0001,010,0002,510,848
8Jan 10, 2025 16:453,45019,538,5672,024,0001,012,0002,523,136
9Jan 10, 2025 16:453,45522,766,9642,027,0001,013,0002,523,136
10Jan 10, 2025 14:533,45818,257,6481,014,0002,029,0002,523,136
11Jan 10, 2025 16:453,45818,930,0812,029,0001,014,0002,510,848
12Jan 10, 2025 14:493,46121,309,2691,015,0002,031,0002,519,040
13Jan 10, 2025 14:493,46823,625,8672,035,0001,017,0002,510,848
14Jan 10, 2025 16:453,47023,195,6682,036,0001,018,0002,519,040
15Jan 10, 2025 14:533,49518,749,8542,051,0001,025,0002,539,520
16Jan 10, 2025 16:453,53019,475,2322,071,0001,035,0002,519,040
17Jan 10, 2025 14:533,58024,829,8102,100,0001,050,0002,535,424
18Jan 10, 2025 14:483,60724,095,5721,058,0002,116,0002,510,848
19Jan 10, 2025 14:493,61125,255,9991,059,0002,119,0002,510,848
20Jan 10, 2025 16:454,26317,858,2113,751,00002,535,424
21Jan 10, 2025 16:454,46819,308,8022,949,000983,0002,273,280