Prime Number Addition

Picard

Member
I thought about adding all the prime numbers that make up each set for the 6/49 to delete more sets, much like the sum of the numbers themselves.

Take, say the last draw May 4/2002
15=3x5
23=23
38=2x17
39=3x13
44=2x2x11
49=7x7

So the sum of the primes would be:
3+5+23+2+17+3+13+2+2+11+7+7=95

I can't seem to figure anything mathematical for the computer to figure all the primes and then add them up.

Anyone have suggestions? (besides doing it manualy)
 

Goswinus

Member
Picard,

If you're using Excel, you could achieve your goal using vlookup and/or hlookup.

Apart from that, 38 = 2 x 19 :D
 

dwoods99

Member
Well, even numbers are easy... divide by 2, check what's left. If it's even, divide by 2 again, and so on. If not, divide by 3 and check for 0 remainder, if not divide by 5. If ok, check if even and (repeat process).

However, my suggestion would be to simply figure it out once and put it into an array (since you only have 49 numbers). So then you look up the 6/49 number in the table to get the sum value, add all the sums together and you're done.

01 = 1 = 1
02 = 2 = 2
03 = 3 = 3
04 = 2+2 = 2 (2+2 being prime 2 * prime 2)
05 = 5 = 5
06 = 2+3 = 5
07 = 7 = 7
08 = 2+2+2 = 6
09 = 3+3 = 6
10 = 2+5 = 7
...
38 = 2+19 = 21
39 = 3+13 = 16
...
46 = 2+23 = 25
47 = 47 = 47
48 = 2+2+2+2+3 = 11
49 = 7+7 = 14

Hope that helps.
 

GillesD

Member
Sum of primes

Interesting approach.

In theory, the lowest sum you can get is 20 (sum of 1, 2, 3, 4, 5 and 5) and the maximum one is 228 (sum of 29, 31, 37, 41, 43, and 47). For the first 1908 draws of Lotto 6/49, the actual low and high are respectively 33 and 183.

Looking at the distribution, it approach a standard distribution slightly skewed to the right. 90% of the results are between 48 and 123.

The value of 87 has come out the most often (38 times) and there is still 79 values that have yet to come out (most of them for in the high range with only 4 sums being 165 or over).

It might be interesting to run this analysis on the whole set of possible combinations for Lotto 6/49.

This was obtained using the approach suggested by Goswinus in about 30 min of development.
 

Picard

Member
Yes.
I try to focus aroud the 80 to 100 range.

Now if I could eliminate all combinations above and below, or only include those within that range....

I'll get going.
The next draw is 10million!
 

GillesD

Member
Prime addition

I ran the test over the 13.9 millions possibilities. The distribution is effectively slightly skewed to the right with a twin peaks
 
Top