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 17:21Joshua Bergman AnderssonJoshua Bergman AnderssonScore: 99,385Success
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 17:2199,098110,253,78785,202,0002,004,0002,289,664
2Jan 20, 2026 17:2199,291117,477,69086,372,0001,004,0002,527,232
3Jan 20, 2026 17:2199,303110,299,13986,383,0001,004,0002,523,136
4Jan 20, 2026 17:2199,348114,696,14884,412,0003,014,0002,510,848
5Jan 20, 2026 17:2199,385109,651,68186,454,0001,005,0002,269,184
6Jan 20, 2026 17:2199,516114,295,66385,561,0002,013,0002,519,040
7Jan 20, 2026 17:2199,552109,328,81186,600,0001,006,0002,289,664
8Jan 20, 2026 17:2199,622114,574,98386,660,0001,007,0002,289,664
9Jan 20, 2026 17:2199,977117,918,43785,981,0001,999,0002,289,664