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 listSep 29, 2021 18:29Mikhail ShirokovMikhail ShirokovScore: 7,360,235Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 29, 2021 18:297,341,8936,525,107,5616,460,865,77402,260,992
2Sep 29, 2021 18:297,360,2356,534,426,4486,477,006,53102,260,992
3Sep 29, 2021 18:297,364,4876,536,905,4956,480,748,49702,256,896