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 listMay 3, 2026 21:03TudyMTudyMScore: 32,075Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2026 21:0531,97745,375,20826,032,0002,108,0002,539,520
2May 3, 2026 21:0531,98145,068,30326,034,0002,110,0002,535,424
3May 3, 2026 21:0532,03744,601,76726,051,0002,142,0002,535,424
4May 3, 2026 21:0532,04845,423,68926,125,0002,078,0002,535,424
5May 3, 2026 21:0532,07544,926,24626,125,0002,101,0002,539,520
6May 3, 2026 21:0532,11845,312,85526,107,0002,157,0002,338,816
7May 3, 2026 21:0532,14244,605,29926,151,0002,134,0002,539,520
8May 3, 2026 21:0532,18142,157,75626,237,0002,083,0002,531,328
9May 3, 2026 21:0532,65261,935,56225,587,0003,147,0002,523,136