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 11, 2021 08:56Ilya AniskovetsIlya AniskovetsScore: 761,163Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 11, 2021 08:56760,293726,621,618669,057,56902,265,088
2Nov 11, 2021 08:56761,163730,962,742669,823,20102,256,896
3Nov 11, 2021 08:56761,612733,401,513670,218,40602,252,800