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 21, 2021 18:25Yuriy LyfenkoYuriy LyfenkoScore: 42,788Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2021 18:2541,892102,357,69236,864,75802,220,032
2Jun 21, 2021 18:2541,945115,268,93636,911,81602,215,936
3Jun 21, 2021 18:2542,010116,792,31736,968,52602,224,128
4Jun 21, 2021 18:2542,59463,624,73637,483,00002,375,680
5Jun 21, 2021 18:2542,70559,819,55836,565,0001,015,0002,379,776
6Jun 21, 2021 18:2542,72061,476,66337,594,00002,269,184
7Jun 21, 2021 18:2542,78863,862,29937,653,00002,371,584
8Jun 21, 2021 18:2542,78862,130,02237,653,00002,269,184
9Jun 21, 2021 18:2542,80366,152,56337,667,00002,269,184
10Jun 21, 2021 18:2542,83570,753,38737,695,00002,379,776
11Jun 21, 2021 18:2542,86667,265,01236,703,0001,019,0002,269,184
12Jun 21, 2021 18:2543,03863,516,87935,880,0001,993,0002,269,184