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 4, 2024 20:11Ivan BessonovIvan BessonovScore: 66,723Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 4, 2024 20:1166,555121,939,36458,568,19802,252,800
2May 4, 2024 20:2166,647120,045,93258,649,14602,252,800
3May 4, 2024 20:2166,705122,114,91358,700,01502,256,896
4May 4, 2024 20:1166,723120,899,09358,716,42002,256,896
5May 4, 2024 20:1166,833131,294,17358,813,28702,260,992
6May 4, 2024 20:2167,050116,320,29359,004,30702,260,992