![]() |
|
|
#1728 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
got it working:
Code:
test(n)=for(sqrN=sqrtint(n),n,sqrN2=sqrN^2;PCS=sqrtint(abs(sqrN2 - n));if(Mod(n,PCS+sqrN)!=0,,print(sqrN+PCS"*"sqrN-PCS);break())); Last fiddled with by science_man_88 on 2010-11-27 at 19:30 |
|
|
|
|
|
#1729 | |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
Quote:
Nevermind.. It gains the edge when it comes to a c18. Last fiddled with by 3.14159 on 2010-11-27 at 19:36 |
|
|
|
|
|
|
#1730 |
|
"Forget I exist"
Jul 2009
Dumbassville
20C016 Posts |
Yeah the largest Mersenne prime I felt like letting it finish was 2^19-1, anything over that I stopped at about 15 seconds in.
Last fiddled with by science_man_88 on 2010-11-27 at 19:37 |
|
|
|
|
|
#1731 |
|
May 2010
Prime hunting commission.
32208 Posts |
Also; For the rest of you out there;
I thought of this type of prime; k * (n! * p(n)#) + 1, or, if you'd like to generalize further, + b, where b is an integer. There should be a k such that k * (n! * p(n)#) + 1 is composite with every n > 1. I'll try looking for some that fit that description, to some extent. Last fiddled with by 3.14159 on 2010-11-27 at 19:39 |
|
|
|
|
|
#1732 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Quote:
|
|
|
|
|
|
|
#1733 |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
p(n)#.
p(5)# = 2 * 3 * 5 * 7 * 11 = 2310. Of course, the smallest prime of the type I mentioned is 3. Last fiddled with by 3.14159 on 2010-11-27 at 19:43 |
|
|
|
|
|
#1734 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
|
|
|
|
|
|
#1735 |
|
May 2010
Prime hunting commission.
110100100002 Posts |
Yes. Product of the first n primes.
And; Patch this for me. Code:
cs(a,x,m)=for(n=a,x,print(m*fp(n)+1));if(isprime(m*fp(n)+1),break) I got an error message; Code:
*** gtos expected an integer, got 'n'. Last fiddled with by 3.14159 on 2010-11-27 at 19:54 |
|
|
|
|
|
#1736 | |
|
"Forget I exist"
Jul 2009
Dumbassville
20C016 Posts |
Quote:
never mind I fixed it embed the if and it worked for me lol. Last fiddled with by science_man_88 on 2010-11-27 at 22:40 |
|
|
|
|
|
|
#1737 | |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
Quote:
Also; Prime: 590 * (400! * p(400)#) + 1. Last fiddled with by 3.14159 on 2010-11-27 at 23:35 |
|
|
|
|
|
|
#1738 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
|
|
|
|
![]() |
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 |