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 15, 2026 20:23M-RochatM-RochatScore: 117,650Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 15, 2026 20:24117,401111,852,913102,186,0001,127,0002,113,536
2May 15, 2026 20:24117,650112,353,669102,430,0001,102,0002,113,536
3May 15, 2026 20:24118,102112,502,105102,815,0001,115,0002,113,536