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 05:31Yuriy LyfenkoYuriy LyfenkoScore: 59,022Success
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 05:3058,897116,143,25351,829,14002,211,840
2Jun 18, 2021 05:3058,964109,534,82251,888,55602,224,128
3Jun 18, 2021 05:3158,968117,811,27651,891,61302,220,032
4Jun 18, 2021 05:3159,022118,654,64351,939,07302,220,032
5Jun 18, 2021 05:3059,067114,021,27651,979,28402,215,936
6Jun 18, 2021 05:3159,082113,360,31051,992,55202,228,224