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 5, 2026 16:10vahookvahookError
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:0309,330,7181,196,00002,113,536expected "6442459076 ", got " "
2May 17, 2026 07:03010,308,1551,198,00002,113,536expected "6442459076 ", got " "
3May 17, 2026 07:0309,278,3151,194,00002,113,536expected "6442459076 ", got " "
4Feb 5, 2026 16:103,45820,935,0821,014,0002,029,0002,281,472
5Feb 5, 2026 16:103,46524,847,1661,016,0002,033,0002,494,464
6Feb 5, 2026 16:103,47221,256,9841,018,0002,037,0002,494,464
7Feb 5, 2026 16:103,47220,434,9041,018,0002,037,0002,498,560
8Feb 5, 2026 16:103,47818,400,1631,020,0002,041,0002,498,560
9Feb 5, 2026 16:103,47819,928,5021,020,0002,041,0002,535,424
10Feb 5, 2026 16:103,49121,576,7171,024,0002,048,0002,494,464
11Feb 5, 2026 16:103,51918,764,7161,032,0002,065,0002,498,560
12Feb 5, 2026 16:103,55316,629,8191,042,0002,085,0002,490,368