mersenneforum.org  

Go Back   mersenneforum.org > Math Stuff > Computer Science & Computational Number Theory > PARI/GP

Reply
 
Thread Tools
Old 2010-09-02, 16:17   #1310
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

yeah on the kbb(a,x,m) idea I apparently forgot I was doing something in Pari and I didn't realize it even though by the time it gives it should of been at 3 in the morning when I was asleep this started.

a=1;for(m=1,10,for(x=1,m^m-1,kbb(a,x,m)))

*** print1: user interrupt after 10h, 40mn, 54,500 ms.
(13:11) gp > a=1;for(m=1,10,for(x=1,m^m-1,kbb(a,x,m)))


oh and the highest I see in the last few lines before I stopped it:

65390961287 which is over 65 billion

stand corrected:

98418329759 over 98 billion found.

Last fiddled with by science_man_88 on 2010-09-02 at 16:32
science_man_88 is offline   Reply With Quote
Old 2010-09-03, 00:43   #1311
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

168010 Posts
Default

I'm currently looking for a record k-b-b. (b = 28657), and that will also be the largest prime I ever found,. (Expected digits: 127737)

Last fiddled with by 3.14159 on 2010-09-03 at 00:46
3.14159 is offline   Reply With Quote
Old 2010-09-03, 13:34   #1312
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24×3×5×7 Posts
Default

I have now commenced testing for k * 2328750 + 1 and k * 2865728657 + 1.

Here are the odds for each:

For the base 2 search: 1 in 4283.
For the base 28657 search: 1 in 5812.

Time taken for each test: 3 minutes for base 2.
Expected time for base 2 completion: Approx. 9 days.
Expected time for base 28657 completion: .. 81 days.
3.14159 is offline   Reply With Quote
Old 2010-09-03, 19:02   #1313
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

20C016 Posts
Default

Quote:
Originally Posted by 3.14159 View Post
I have now commenced testing for k * 2328750 + 1 and k * 2865728657 + 1.

Here are the odds for each:

For the base 2 search: 1 in 4283.
For the base 28657 search: 1 in 5812.

Time taken for each test: 3 minutes for base 2.
Expected time for base 2 completion: Approx. 9 days.
Expected time for base 28657 completion: .. 81 days.
well you're k range for your expected length is 10^114477-10^114478 how many candidates in that range ?
science_man_88 is offline   Reply With Quote
Old 2010-09-04, 00:26   #1314
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

24·3·5·7 Posts
Default

Quote:
Originally Posted by science_man_88
well you're k range for your expected length is 10^114477-10^114478 how many candidates in that range ?
For b = 2, there are approximately 4880 candidates. For b = 28657, there are approx. 9289 candidates.

Therefore, I will expect only one prime for each, in 9 and 81 days, respectively.
3.14159 is offline   Reply With Quote
Old 2010-09-04, 02:11   #1315
3.14159
 
3.14159's Avatar
 
May 2010
Prime hunting commission.

32208 Posts
Default

I'll report back in November for b = 28657.
3.14159 is offline   Reply With Quote
Old 2010-09-06, 16:49   #1316
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Code:
(13:45) gp > ifprime(x,p)=if(isprime(x),p)
%11 = (x,p)->if(isprime(x),p)
(13:47) gp > ifprime(100,print(100))
100
I was trying something like this but I can't get it to work. why ? is my best question.
science_man_88 is offline   Reply With Quote
Old 2010-09-06, 17:16   #1317
axn
 
axn's Avatar
 
Jun 2003

5,087 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
I was trying something like this but I can't get it to work. why ? is my best question.
Code:
ifprime(p, s)=if(isprime(p), eval(s));
ifprime(100, "print(p)");
ifprime(101, "print(p)");
101
axn is offline   Reply With Quote
Old 2010-09-06, 17:25   #1318
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by axn View Post
Code:
ifprime(p, s)=if(isprime(p), eval(s));
ifprime(100, "print(p)");
ifprime(101, "print(p)");
101
I should of known this by now lol thank you though in a way this is useless but it is useful in the fact that it could create shorter code when typing it in. as by the look of it it saves 10 characters I was also thinking of one where you can do a && part in the if I think I'll try that next.
science_man_88 is offline   Reply With Quote
Old 2010-09-06, 17:32   #1319
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Code:
(14:28) gp > ifprime(p,u,s)=if(isprime(p) && eval(u), eval(s))
%42 = (p,u,s)->if(isprime(p)&&eval(u),eval(s))
(14:29) gp > ifprime(100,"p%9==1","print(100)")
(14:29) gp > ifprime(101,"p%9==1","print(100)")
(14:29) gp > ifprime(101,"p%9==2","print(100)")
100
(14:29) gp > ifprime(101,"p%9==2","print(p)")
101
thank you axn
science_man_88 is offline   Reply With Quote
Old 2010-09-06, 17:42   #1320
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

100000110000002 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
I should of known this by now lol thank you though in a way this is useless but it is useful in the fact that it could create shorter code when typing it in. as by the look of it it saves 10 characters I was also thinking of one where you can do a && part in the if I think I'll try that next.
okay maybe not but it's at least as small as what it equals.
science_man_88 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why do I sometimes see all the <> formatting commands when I quote or edit? cheesehead Forum Feedback 3 2013-05-25 12:56
Passing commands to PARI on Windows James Heinrich Software 2 2012-05-13 19:19
Ubiquity commands Mini-Geek Aliquot Sequences 1 2009-09-22 19:33
64-bit Pari? CRGreathouse Software 2 2009-03-13 04:22
Are these commands correct? jasong Linux 2 2007-10-18 23:40

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


Fri Aug 6 23:12:58 UTC 2021 up 14 days, 17:41, 1 user, load averages: 4.28, 4.23, 4.06

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

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.