mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Alberico Lepore (https://www.mersenneforum.org/forumdisplay.php?f=166)
-   -   Reverse process sum of odd numbers from x to y. What is the fastest method? (https://www.mersenneforum.org/showthread.php?t=22546)

Alberico Lepore 2017-09-04 20:01

I think it is valid for 3

Alberico Lepore 2017-09-05 14:57

We calculate the function of the prime numbers by calculating the non-prime distribution function.
Example In 53 there are 27 elements less 12 possible combinations plus repeating numbers (look at 45) and then 53 is the 16 prime numbers
and has 16 matches 53

53
51
49
47
45
43
41
39
37
35
33
31
29
27
25
23
21
19
19+17+15=51
17
17+15+13=45
15
15+13+11=39
13
13+11+9=33
13+11+9+7+5=45
13+11+9+7+5+3+1=49
11
11+9+7=27
11+9+7+5+3=35
9
9+7+5=21
9+7+5+3+1=25
7
7+5+3=15
5
5+3+1=9
3
2


All times are UTC. The time now is 23:27.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.