Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#51 2013-04-25 15:07:49

phrontister
Real Member

Offline

Re: My New Twin Prime Numbers

Good luck with that! I have to go out now...

"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

#52 2013-04-25 17:57:56

bobbym

Online

Re: My New Twin Prime Numbers

Hi;

Sorry, but problems still not fixed and it looks like my connectivity will be on and off for the rest of the night.

See you later.

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#53 2013-04-25 20:29:35

phrontister
Real Member

Offline

Re: My New Twin Prime Numbers

Hi Bobby,

Just messin' 'round with output presentation, and also included a timer, infinite looping (for looooong calcs) and a prompt for P. Here's what I've done:

Last edited by phrontister (2013-04-28 22:51:25)

"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

#54 2013-04-25 20:36:42

bobbym

Online

Re: My New Twin Prime Numbers

Hi;

Your machine is faster than mine. Mine took 12 seconds.

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#55 2013-04-25 22:01:35

phrontister
Real Member

Offline

Re: My New Twin Prime Numbers

I grease the workings of my computer with Vegemite. If you want to try that on your machine to soup it up, just make sure you don't use molasses, which has a similar appearance but will have the opposite effect.

Last edited by phrontister (2013-04-25 22:04:35)

"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

#56 2013-04-26 02:55:27

bobbym

Online

Re: My New Twin Prime Numbers

Hi phrontister;

I will try that but vegemite is hard to come by here.

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#57 2013-04-26 02:59:07

phrontister
Real Member

Offline

Re: My New Twin Prime Numbers

Hi Bobby,

You probably already know approx how the running times of the various parts of your code compare, but I thought I'd run a 'Timing' test so I could see which area/s could do with some speeding up. I used P=13 and minimum upper limits.

0.047 seconds: p = Table[Prime[k], {k, 1, 45793}];

0.109 seconds: ans = Accumulate[Table[p[[n]]^13, {n, 1, 45793}]];

10.656 seconds: Position[MapIndexed[fubar, ans], {{True}, {True}}]

I'm not sure how to break that last one into separate times for Position and MapIndexed, but from a test I tried it seems that MapIndexed takes up most of the combined time (but I may be wrong there, because I had to split that line into two for Timing to work).

"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

#58 2013-04-26 03:09:04

bobbym

Online

Re: My New Twin Prime Numbers

Hi;

That is to be expected, that is where the primality testing is. But it does look like I did not choose the best way possible.

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#59 2013-04-26 03:11:59

phrontister
Real Member

Offline

Re: My New Twin Prime Numbers

Getting sleepy...my inbuilt clock is running down. CuL8r.

"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

#60 2013-04-26 03:19:08

bobbym

Online

Re: My New Twin Prime Numbers

Hi;

Okay, have a good night. Maybe I will have something to post when you get back.

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#61 2013-04-26 11:05:23

phrontister
Real Member

Offline

Re: My New Twin Prime Numbers

Hi Bobby,

I just changed my code in post #53 to remove the upper limit, which will be useful for cooking my cpu during long service leave if I particularly want to solve a hard-to-get P value.

"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

#62 2013-04-26 12:19:48

bobbym

Online

Re: My New Twin Prime Numbers

Hi;

There is some strange coincidence with these answers.

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#63 2013-04-26 12:33:36

phrontister
Real Member

Offline

Re: My New Twin Prime Numbers

What have you discovered?

"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

#64 2013-04-26 12:37:02

bobbym

Online

Re: My New Twin Prime Numbers

That all the n's are odd.

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#65 2013-04-26 12:46:13

phrontister
Real Member

Offline

Re: My New Twin Prime Numbers

That is an 'odd' coincidence!

Actually, I don't know how to check that. I tried printing n, but failed.

And I have to go out now...

"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

#66 2013-04-26 12:51:23

bobbym

Online

Re: My New Twin Prime Numbers

Okay, there are even answers but the first answer is so far always odd. Have a good time.

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#67 2013-04-26 13:21:16

Stangerzv
Full Member

Offline

Re: My New Twin Prime Numbers

hi bobbym

Yeah I notice it too..can you get n to be even for Ps? It is like finding odd perfect numbers, so far all perfect numbers are even.

Last edited by Stangerzv (2013-04-26 13:22:52)

#68 2013-04-26 13:55:17

bobbym

Online

Re: My New Twin Prime Numbers

Hi;

This is an even answer for n, but it is not the smallest one.

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#69 2013-04-26 16:32:27

phrontister
Real Member

Offline

Re: My New Twin Prime Numbers

I changed my code to run automatically while I was out, and got the following:

All odd from P=2 to P=43.

Then 3 evens:

P=47: n=43620
P=53: n=10102
P=59: n=181138

P=61 is back to odd again, and then 3 evens:

P=67 n=25982
P=71: n=64636
P=73: n=342

There may not be an odd:even pattern.

P=79 is computing now, but is taking a long time.

"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

#70 2013-04-26 16:34:59

phrontister
Real Member

Offline

Re: My New Twin Prime Numbers

Oops...for P=37, n=57126

...and P=79: n=621475

Last edited by phrontister (2013-04-26 16:36:38)

"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

#71 2013-04-26 16:38:06

bobbym

Online

Re: My New Twin Prime Numbers

Was that P = 37 the smallest one?

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#72 2013-04-26 16:51:32

phrontister
Real Member

Offline

Re: My New Twin Prime Numbers

Yes. I tested it in your program and in mine.

"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." - Ted Nelson

#73 2013-04-26 16:57:15

bobbym

Online

Re: My New Twin Prime Numbers

Okay, then that puts that conjecture to sleep.

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.

#74 2013-04-26 17:30:30

Stangerzv
Full Member

Offline

Re: My New Twin Prime Numbers

If there is no computer maybe it would take hundreds of years to verify this for sure. But now it takes less than a day:)

#75 2013-04-26 20:15:27

bobbym

Online

Re: My New Twin Prime Numbers

Hi Stangerzv;

I doubt that anyone would ever be attempting this without a computer.

In mathematics, you don't understand things. You just get used to them.
I have the result, but I do not yet know how to get it.
All physicists, and a good many quite respectable mathematicians are contemptuous about proof.