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 25, 2023 23:31IhebIhebScore: 7,338,105Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 25, 2023 23:317,337,9776,520,265,7396,457,419,57402,256,896
2Sep 25, 2023 23:317,338,1056,528,309,7336,457,532,04002,244,608
3Sep 25, 2023 23:317,342,5986,517,153,4106,461,486,23002,252,800