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 listMar 8, 2025 04:34wainCGPwainCGPScore: 18,559Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 8, 2025 04:3418,45243,425,49015,224,0001,014,0002,269,184
2Mar 8, 2025 04:3418,48237,536,88714,231,0002,033,0002,289,664
3Mar 8, 2025 04:3418,51943,378,28014,260,0002,037,0002,269,184
4Mar 8, 2025 04:3418,54332,968,99014,279,0002,039,0002,289,664
5Mar 8, 2025 04:3418,55937,795,98914,291,0002,041,0002,289,664
6Mar 8, 2025 04:3418,62244,204,47014,339,0002,048,0002,289,664
7Mar 8, 2025 04:3418,62737,464,01816,392,00002,289,664
8Mar 8, 2025 04:3418,72842,494,44815,451,0001,030,0002,285,568
9Mar 8, 2025 04:3418,73334,888,36315,455,0001,030,0002,289,664