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 20, 2021 21:44Yuriy LyfenkoYuriy LyfenkoScore: 46,176Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 20, 2021 21:4441,086114,863,83736,155,29602,215,936
2Jun 20, 2021 21:4441,10489,764,18536,171,75802,211,840
3Jun 20, 2021 21:4441,11591,909,76136,181,27102,220,032
4Jun 20, 2021 21:4446,05865,696,00839,518,0001,013,0002,269,184
5Jun 20, 2021 21:4446,09061,586,27540,559,00002,375,680
6Jun 20, 2021 21:4446,10065,294,91639,554,0001,014,0002,375,680
7Jun 20, 2021 21:4446,17661,542,21039,620,0001,015,0002,269,184
8Jun 20, 2021 21:4446,18870,947,19539,629,0001,016,0002,269,184
9Jun 20, 2021 21:4446,19464,934,89439,635,0001,016,0002,367,488
10Jun 20, 2021 21:4446,19462,262,91039,635,0001,016,0002,367,488
11Jun 20, 2021 21:4446,21671,144,99440,670,00002,371,584
12Jun 20, 2021 21:4446,26171,926,46039,693,0001,017,0002,469,888