mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   PARI/GP (https://www.mersenneforum.org/forumdisplay.php?f=155)
-   -   PARI's commands (https://www.mersenneforum.org/showthread.php?t=13636)

CRGreathouse 2010-11-22 22:56

[QUOTE=science_man_88;238300]I have a windows system I'm not for pay but I suck lol.[/QUOTE]

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.

3.14159 2010-11-22 23:12

[QUOTE=CRGreathouse;238299]I just discussed that in my last post. There are already new SVN binaries on the site that you can download. But there isn't a new installer, and won't be in the near future, due to difficulties with Vista, Win7, and cygwin/mingw/perl on those systems.

Finding skilled Windows programmers willing to work for free isn't that easy.[/QUOTE]

Yeah, but those binaries are tarballs. Unusable.

CRGreathouse 2010-11-22 23:12

[QUOTE=3.14159;238304]Yeah, but those binaries are tarballs. Unusable.[/QUOTE]

You're downloading the wrong thing.

3.14159 2010-11-22 23:21

[QUOTE=Charles;238305]You're downloading the wrong thing.[/QUOTE]

Well, please link to the "correct" items.

CRGreathouse 2010-11-22 23:38

1 Attachment(s)
[QUOTE=3.14159;238308]Well, please link to the "correct" items.[/QUOTE]

Really? It's right on the download page!

[ATTACH]5917[/ATTACH]

3.14159 2010-11-22 23:41

[QUOTE=CRGreathouse;238313]Really? It's right on the download page!

[ATTACH]5917[/ATTACH][/QUOTE]

Oh. Didn't see that. Thanks.

CRGreathouse 2010-11-23 00:45

[QUOTE=3.14159;238314]Oh. Didn't see that. Thanks.[/QUOTE]

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.

3.14159 2010-11-23 01:34

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.

science_man_88 2010-11-23 19:11

[CODE]lucaslehmer(p)= s=4;for(x=1,p-2,s=(s^2-2)%(2^p-1));if(s==0,return(1),return(0))[/CODE]

my best code so far not that it matters.

axn 2010-11-23 19:47

[QUOTE=science_man_88;238383][CODE]lucaslehmer(p)= s=4;for(x=1,p-2,s=(s^2-2)%(2^p-1));if(s==0,return(1),return(0))[/CODE]

my best code so far not that it matters.[/QUOTE]

[CODE]lucaslehmer(p)= s=Mod(4, 2^p-1);for(x=1,p-2,s=s^2-2);if(s==0,1,0);[/CODE]
Some small changes.

science_man_88 2010-11-23 19:52

[QUOTE=axn;238387][CODE]lucaslehmer(p)= s=Mod(4, 2^p-1);for(x=1,p-2,s=s^2-2);if(s==0,1,0);[/CODE]
Some small changes.[/QUOTE]

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.


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

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