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 listJun 18, 2021 11:54alex3dalex3dScore: 68,577Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 18, 2021 11:5468,538127,639,16660,313,18002,244,608
2Jun 18, 2021 11:4168,577123,551,64260,347,81402,240,512
3Jun 18, 2021 11:4168,577111,633,20860,347,91602,248,704
4Jun 18, 2021 11:4168,577126,811,38160,348,06102,248,704
5Jun 18, 2021 11:5468,762121,111,11760,510,59402,252,800
6Jun 18, 2021 11:5468,782134,568,13160,527,97502,256,896