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 16, 2025 20:50Ian MckibbenIan MckibbenScore: 283,601Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 16, 2025 20:50283,169273,510,748247,188,0002,001,0002,289,664
2Jan 16, 2025 20:50283,184277,520,697249,202,00002,289,664
3Jan 16, 2025 20:50283,203276,843,239247,218,0002,001,0002,269,184
4Jan 16, 2025 20:50283,299275,129,560247,301,0002,002,0002,289,664
5Jan 16, 2025 20:50283,601277,924,906248,567,0001,002,0002,269,184
6Jan 16, 2025 20:50283,661274,328,241248,620,0001,002,0002,289,664
7Jan 16, 2025 20:50283,842274,573,847247,783,0001,998,0002,289,664
8Jan 16, 2025 20:50284,067280,165,808248,980,000999,0002,289,664
9Jan 16, 2025 20:50284,369271,683,114249,245,0001,000,0002,269,184