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 listApr 23, 2026 15:28Nanored4498Nanored4498Score: 48,482Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 15:2848,35663,633,20141,541,0001,013,0002,514,944
2Apr 23, 2026 15:2848,38064,842,93541,562,0001,013,0002,523,136
3Apr 23, 2026 15:2848,40563,635,83041,583,0001,014,0002,334,720
4Apr 23, 2026 15:2848,43859,445,54641,612,0001,014,0002,523,136
5Apr 23, 2026 15:2848,48262,192,58541,650,0001,015,0002,527,232
6Apr 23, 2026 15:2848,70161,559,35340,864,0001,993,0002,527,232
7Apr 23, 2026 15:2848,74561,438,28540,901,0001,995,0002,527,232
8Apr 23, 2026 15:2848,79263,647,16940,940,0001,997,0002,535,424
9Apr 23, 2026 15:2849,05263,784,09642,163,0001,003,0002,514,944