![]() |
|
|
#1640 |
|
Aug 2006
175B16 Posts |
Well, the way to get better (of which the first stage is starting to not suck) is to program, and a great way to do that is to work on an open-source program like Pari. This particular task is probably too hard for you, but one may come along that is appropriate.
The best part of working on these systems is that it's a great way to advertise your skills to potential employers. You can say that you worked on the project and then show your actual contributions. |
|
|
|
|
|
#1641 | |
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
Quote:
|
|
|
|
|
|
|
#1642 |
|
Aug 2006
3·1,993 Posts |
|
|
|
|
|
|
#1643 |
|
May 2010
Prime hunting commission.
24·3·5·7 Posts |
|
|
|
|
|
|
#1644 |
|
Aug 2006
3×1,993 Posts |
|
|
|
|
|
|
#1645 | |
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
Quote:
Last fiddled with by 3.14159 on 2010-11-22 at 23:47 |
|
|
|
|
|
|
#1646 |
|
Aug 2006
3·1,993 Posts |
No problem. You should put the binary in a directory with the .gprc file (probably C:\Program Files\PARI or C:\Program Files (x86)\PARI) or you won't get the colors, default primelimit, etc. from that file.
Unfortunately readline and the high-resolution graphics aren't included in that version AFAIK. I'd like to see that fixed; if I have a chance maybe I'll look into it. But that probably won't happen until next year -- I have a lot of consulting work to do these next few months. |
|
|
|
|
|
#1647 |
|
May 2010
Prime hunting commission.
110100100002 Posts |
I'm not sure if I even got to explore all of PARI's features as of yet. I know a bit of programming, some number theoretic functions, and how to somewhat randomly generate semiprime or prime numbers.
a(n) = My prime-generating function. Last fiddled with by 3.14159 on 2010-11-23 at 01:35 |
|
|
|
|
|
#1648 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Code:
lucaslehmer(p)= s=4;for(x=1,p-2,s=(s^2-2)%(2^p-1));if(s==0,return(1),return(0)) |
|
|
|
|
|
#1649 |
|
Jun 2003
117378 Posts |
|
|
|
|
|
|
#1650 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
thanks axn you're pretty nice. I have a second implementation to catch all p that have sumdigits(last result)==9 now, as well as one for all #'s that have sumdigits(last result)==9.Neither sequence is in the OEIS but I haven't found much of a pattern yet either so they may not be of interest. I may check back soon if i can find a pattern.
|
|
|
|
![]() |
| 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 |