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 listNov 26, 2023 17:15mmalczakmmalczakScore: 6,748,664Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 26, 2023 17:156,741,2236,018,964,1635,932,275,88202,260,992
2Nov 26, 2023 17:156,748,6646,002,070,4095,938,824,45302,252,800
3Nov 26, 2023 17:156,749,6786,000,052,4455,939,716,36602,256,896