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 18, 2026 16:07M-RochatM-RochatScore: 24,604Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2026 16:1024,42031,590,71220,345,0001,145,0002,113,536
2May 18, 2026 16:1024,47932,221,42520,393,0001,149,0002,113,536
3May 18, 2026 16:1024,51131,265,72420,425,0001,145,0002,117,632
4May 18, 2026 16:1024,59232,966,99820,469,0001,172,0002,113,536
5May 18, 2026 16:1024,60431,057,68620,501,0001,151,0002,117,632
6May 18, 2026 16:1024,64831,385,86820,553,0001,138,0002,113,536
7May 18, 2026 16:1024,65733,286,67620,535,0001,164,0002,113,536
8May 18, 2026 16:1024,68231,655,09320,565,0001,156,0002,113,536
9May 18, 2026 16:1024,78533,386,47320,660,0001,151,0002,113,536