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 14, 2024 10:13exebookexebookScore: 7,372,016Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 14, 2024 10:137,368,2416,546,008,5796,484,051,92102,252,800
2May 14, 2024 10:137,372,0166,548,553,3296,487,373,68802,260,992
3May 14, 2024 10:137,377,1746,559,025,5866,491,912,68002,252,800