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 9, 2025 23:46zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:06M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:0609,087,9291,156,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 07:0608,758,1221,152,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 07:0608,592,9001,148,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 9, 2025 23:463,44418,320,5311,010,0002,021,0002,510,848
5Jan 9, 2025 23:483,44416,571,3052,021,0001,010,0002,539,520
6Jan 9, 2025 23:463,45023,851,9362,024,0001,012,0002,506,752
7Jan 9, 2025 23:463,45318,058,0002,026,0001,013,0002,535,424
8Jan 9, 2025 23:483,45825,061,4001,014,0002,029,0002,506,752
9Jan 9, 2025 23:463,46819,493,1232,035,0001,017,0002,510,848
10Jan 9, 2025 23:463,47520,663,5472,039,0001,019,0002,506,752
11Jan 9, 2025 23:463,49817,930,1891,026,0002,052,0002,535,424
12Jan 9, 2025 23:463,58420,735,2171,051,0002,103,0002,539,520
13Jan 9, 2025 23:464,18524,342,9893,683,00002,273,280
14Jan 9, 2025 23:484,27620,126,9173,763,00002,506,752
15Jan 9, 2025 23:464,46618,276,5462,948,000982,0002,502,656