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 listJan 24, 2026 01:04zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:42M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:4209,263,3281,233,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 06:4208,483,0961,333,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 06:4208,993,2011,323,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 24, 2026 01:033,40720,880,2271,999,000999,0002,359,296
5Jan 24, 2026 01:053,41016,533,9262,001,0001,000,0002,363,392
6Jan 24, 2026 01:033,42619,194,6402,010,0001,005,0002,277,376
7Jan 24, 2026 01:053,43421,336,5692,015,0001,007,0002,277,376
8Jan 24, 2026 01:043,43617,612,5992,016,0001,008,0002,277,376
9Jan 24, 2026 01:043,44720,401,2302,022,0001,011,0002,535,424
10Jan 24, 2026 01:033,44819,038,5901,011,0002,023,0002,277,376
11Jan 24, 2026 01:043,45719,670,3312,028,0001,014,0002,510,848
12Jan 24, 2026 01:053,55323,334,7982,085,0001,042,0002,535,424