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 listMay 15, 2026 01:10zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:09M-Rochat53.39CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:09010,335,2591,013,00002,113,536expected "6442459076 ", got "2305422681 "
2May 17, 2026 05:09011,773,0361,024,00002,113,536expected "6442459076 ", got "2305422681 "
3May 17, 2026 05:09010,028,507999,00002,113,536expected "6442459076 ", got "2305422681 "
4May 15, 2026 01:132,5049,526,6012,204,00002,113,536
5May 15, 2026 01:132,57611,554,5102,267,00002,113,536
6May 15, 2026 01:132,59310,492,3362,282,00002,113,536
7May 15, 2026 01:132,5959,808,4122,284,00002,113,536
8May 15, 2026 01:132,59712,401,5252,286,00002,113,536
9May 15, 2026 01:132,60110,885,5492,289,00002,113,536
10May 15, 2026 01:132,61110,771,3722,298,00002,113,536
11May 15, 2026 01:132,9819,942,1412,624,00002,113,536
12May 15, 2026 01:133,02312,528,4712,661,00002,113,536