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 15:56vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:01M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:01011,569,7321,196,00002,113,536expected "6442459076 ", got " "
2May 17, 2026 07:0108,583,4591,190,00002,113,536expected "6442459076 ", got " "
3May 17, 2026 07:01010,132,5411,197,00002,113,536expected "6442459076 ", got " "
4Feb 5, 2026 15:563,45820,989,9301,014,0002,029,0002,490,368
5Feb 5, 2026 15:563,46519,499,9131,016,0002,033,0002,498,560
6Feb 5, 2026 15:573,46718,813,0621,017,0002,034,0002,494,464
7Feb 5, 2026 15:573,47020,075,3701,018,0002,036,0002,281,472
8Feb 5, 2026 15:563,47220,464,7591,018,0002,037,0002,498,560
9Feb 5, 2026 15:573,47220,810,4281,018,0002,037,0002,535,424
10Feb 5, 2026 15:563,47420,979,8391,019,0002,038,0002,494,464
11Feb 5, 2026 15:563,47518,388,1641,019,0002,039,0002,498,560
12Feb 5, 2026 15:563,48818,318,1581,023,0002,046,0002,506,752
13Feb 5, 2026 15:563,50616,843,0701,028,0002,057,0002,277,376
14Feb 5, 2026 15:563,51320,974,9901,030,0002,061,0002,498,560
15Feb 5, 2026 15:563,51520,435,3301,031,0002,062,0002,498,560