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 20, 2026 16:55Joshua Bergman AnderssonJoshua Bergman AnderssonScore: 195,890Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2026 16:55195,602194,265,502168,127,0004,003,0002,289,664
2Jan 20, 2026 16:55195,632195,103,830171,156,0001,000,0002,289,664
3Jan 20, 2026 16:55195,774199,806,540171,280,0001,001,0002,289,664
4Jan 20, 2026 16:55195,884197,291,829171,376,0001,002,0002,289,664
5Jan 20, 2026 16:55195,890197,840,758171,381,0001,002,0002,519,040
6Jan 20, 2026 16:55195,959193,904,656171,442,0001,002,0002,289,664
7Jan 20, 2026 16:55196,023197,042,888171,498,0001,002,0002,510,848
8Jan 20, 2026 16:55196,027197,227,029169,496,0003,008,0002,289,664
9Jan 20, 2026 16:55196,190198,710,186170,640,0002,007,0002,289,664