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 6, 2026 21:25vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:52M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:5209,500,3931,208,00002,113,536expected "6442459076 ", got " "
2May 17, 2026 06:5208,912,6971,126,00002,113,536expected "6442459076 ", got " "
3May 17, 2026 06:52010,416,2381,181,00002,113,536expected "6442459076 ", got " "
4Feb 6, 2026 21:253,44818,519,9891,011,0002,023,0002,494,464
5Feb 6, 2026 21:253,45124,167,5451,012,0002,025,0002,490,368
6Feb 6, 2026 21:253,45324,598,7551,013,0002,026,0002,535,424
7Feb 6, 2026 21:253,45718,549,5881,014,0002,028,0002,502,656
8Feb 6, 2026 21:253,48421,265,2981,022,0002,044,0002,494,464
9Feb 6, 2026 21:253,65516,294,4981,072,0002,144,0002,494,464