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 27, 2021 19:35Yuriy LyfenkoYuriy LyfenkoScore: 36,808Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 19:3531,55696,465,23627,769,24802,220,032
2Jun 27, 2021 19:3531,597112,111,21127,805,02402,224,128
3Jun 27, 2021 19:3531,723104,280,82827,916,10202,215,936
4Jun 27, 2021 19:3536,70660,216,50032,301,00002,367,488
5Jun 27, 2021 19:3536,77555,293,23531,351,0001,011,0002,375,680
6Jun 27, 2021 19:3536,78659,719,41331,361,0001,011,0002,269,184
7Jun 27, 2021 19:3536,80850,915,94731,379,0001,012,0002,269,184
8Jun 27, 2021 19:3536,84753,680,01931,412,0001,013,0002,383,872
9Jun 27, 2021 19:3536,85960,167,11932,436,00002,265,088
10Jun 27, 2021 19:3536,93455,081,60531,487,0001,015,0002,269,184
11Jun 27, 2021 19:3536,95663,691,84931,505,0001,016,0002,269,184
12Jun 27, 2021 19:3536,98057,895,39232,542,00002,269,184