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 13, 2026 22:10vahookvahookScore: 4,898Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 13, 2026 22:104,86025,217,7433,208,0001,069,0002,277,376
2Jan 13, 2026 22:104,88024,823,4393,221,0001,073,0002,277,376
3Jan 13, 2026 22:104,88923,549,2533,227,0001,075,0002,277,376
4Jan 13, 2026 22:104,89124,101,9123,228,0001,076,0002,281,472
5Jan 13, 2026 22:104,89821,477,2083,233,0001,077,0002,277,376
6Jan 13, 2026 22:104,91024,942,4883,241,0001,080,0002,502,656
7Jan 13, 2026 22:104,91121,129,2023,242,0001,080,0002,281,472
8Jan 13, 2026 22:104,92820,464,2613,253,0001,084,0002,535,424
9Jan 13, 2026 22:104,93923,992,6693,260,0001,086,0002,277,376