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 20, 2025 21:58Oleg KovalovOleg KovalovScore: 118,183Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2025 21:58117,575125,516,244102,462,0001,004,0002,330,624
2Jan 20, 2025 21:58117,651126,213,523103,533,00002,330,624
3Jan 20, 2025 21:58117,695127,515,412102,567,0001,005,0002,498,560
4Jan 20, 2025 21:58117,844132,334,529103,703,00002,330,624
5Jan 20, 2025 21:58118,183132,870,742102,001,0002,000,0002,478,080
6Jan 20, 2025 21:58118,258129,179,499102,066,0002,001,0002,330,624
7Jan 20, 2025 21:58118,291128,530,845103,096,0001,000,0002,347,008
8Jan 20, 2025 21:58118,316130,524,581102,116,0002,002,0002,330,624
9Jan 20, 2025 21:58118,328126,621,810102,127,0002,002,0002,330,624