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 17, 2026 03:09zielajzielajScore: 3,475Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 17, 2026 03:093,31715,267,5131,946,000973,0002,437,120
2Feb 17, 2026 03:103,31718,053,9851,946,000973,0002,433,024
3Feb 17, 2026 03:103,32818,115,9371,953,000976,0002,428,928
4Feb 17, 2026 03:093,35819,098,4031,970,000985,0002,277,376
5Feb 17, 2026 03:103,39016,829,0351,989,000994,0002,424,832
6Feb 17, 2026 03:093,39218,722,1131,990,000995,0002,445,312
7Feb 17, 2026 03:103,47521,394,1952,039,0001,019,0002,445,312
8Feb 17, 2026 03:103,48827,242,7452,046,0001,023,0002,437,120
9Feb 17, 2026 03:103,51521,937,4501,031,0002,062,0002,441,216
10Feb 17, 2026 03:093,76320,170,3823,311,00002,441,216
11Feb 17, 2026 03:093,77221,925,8093,319,00002,437,120
12Feb 17, 2026 03:093,93019,576,0343,458,00002,433,024