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 03:42vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:24M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:2508,647,9301,190,00002,113,536expected "6442459076 ", got "1 "
2May 17, 2026 05:2508,469,9361,182,00002,113,536expected "6442459076 ", got "1 "
3May 17, 2026 05:25010,388,4581,187,00002,113,536expected "6442459076 ", got "1 "
4Feb 7, 2026 03:433,35923,212,545985,0001,971,0002,494,464
5Feb 7, 2026 03:433,38216,139,304992,0001,984,0002,490,368
6Feb 7, 2026 03:433,39918,913,825997,0001,994,0002,498,560
7Feb 7, 2026 03:433,40019,002,896997,0001,995,0002,490,368
8Feb 7, 2026 03:423,40620,582,190999,0001,998,0002,498,560
9Feb 7, 2026 03:423,41617,046,5101,002,0002,004,0002,277,376
10Feb 7, 2026 03:423,41919,942,7451,003,0002,006,0002,494,464
11Feb 7, 2026 03:423,42421,002,1601,004,0002,009,0002,277,376
12Feb 7, 2026 03:433,44425,723,0301,010,0002,021,0002,494,464
13Feb 7, 2026 03:433,45016,806,5211,012,0002,024,0002,498,560
14Feb 7, 2026 03:423,56018,290,5941,044,0002,089,0002,277,376
15Feb 7, 2026 03:423,61117,645,6841,059,0002,119,0002,498,560