mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Octoproth Search (https://www.mersenneforum.org/forumdisplay.php?f=63)
-   -   Octoproths (https://www.mersenneforum.org/showthread.php?t=3956)

R. Gerbicz 2006-01-05 13:50

1 Attachment(s)
[QUOTE=fetofs]
By the way, gcc isn't compiling Gerbicz's program...

[CODE]octo.c:7:26:sys/resource.h: No such file
octo.c: In function 'cputime':
octo.c:22: storage size of 'rus' isn't known[/CODE][/QUOTE]

OK.
It seems that you haven't got sys/resource.h file. This isn't a big problem, I've used this file to use timings. Now I've removed these two files and replaced by time.h and replaced some lines in the code to use time.h If this isn't good for your compiler then I can provide a third version of the program ( removing timing parts in the code ).

See my attachment for the program.

ps. TTn: it isn't possible to upload c file, I just copy this source to a txt file and upload to the forum.

Greenbank 2006-01-05 13:58

186 done to 200000000000000 (2E14) with no luck.
230 done to 10000000000000 (1E13) with no luck.

Great program, couple of enhancements:-

1) Limit kmax to 2^n
2) Allow kmin and kmax to be entered as 1E13, 2E14, etc.
3) Write completed ranges out to results_octo.txt as a record (only when finished!)

fetofs 2006-01-05 14:34

[QUOTE=R. Gerbicz]OK.
It seems that you haven't got sys/resource.h file. This isn't a big problem, I've used this file to use timings. Now I've removed these two files and replaced by time.h and replaced some lines in the code to use time.h If this isn't good for your compiler then I can provide a third version of the program ( removing timing parts in the code ).

See my attachment for the program.

ps. TTn: it isn't possible to upload c file, I just copy this source to a txt file and upload to the forum.[/QUOTE]

I used Kosmaj's -I option, and it gave me a lot of undefined references (probably can't find gmp.h). I downloaded the new version and this problem persists! Why?

Greenbank 2006-01-05 14:40

81616968619095 230

All 8 confirmed prime. 84 digits for the largest one: k*2^(n+1)+1)

R. Gerbicz 2006-01-05 14:49

[QUOTE=fetofs]I downloaded the new version and this problem persists![/QUOTE]

What warnings have you gotten? Is GMP math library is installed on your computer? You can obtain that from [URL="http://www.swox.com/gmp/"]http://www.swox.com/gmp/[/URL].
Note that GMP is required for the program.

Perhaps it would be much better if somebody on this forum can make an exe file for windows.

Note that the main part is in the sieving. I've choosen GMP to get an easier code for prp testing.

Kosmaj 2006-01-05 14:52

Greenbank
 
Congrats! My record stood for only 4 hours! :sad: :smile:

Will see what can I do later to rectify the "problem" :wink:

Greenbank 2006-01-05 14:54

[QUOTE=Kosmaj]Congrats! My record stood for only 4 hours! :sad: :smile:

Will see what can I do later to rectify the "problem" :wink:[/QUOTE]

Good luck, if I carry on running this then I'll use the time to fill in the gaps on the lower bases rather than going for records.

fetofs 2006-01-05 14:55

[QUOTE=R. Gerbicz]What warnings have you gotten? Is GMP math library is installed on your computer? You can obtain that from [URL="http://www.swox.com/gmp/"]http://www.swox.com/gmp/[/URL].
Note that GMP is required for the program.

Perhaps it would be much better if somebody on this forum can make an exe file for windows.

Note that the main part is in the sieving. I've choosen GMP to get an easier code for prp testing.[/QUOTE]

undefined reference to _gmpz__clear/_gmpz__sub/_gmpz__add, etc... And GMP is installed. If someone (Kosmaj, Greenbank :whistle: ) could provide the binaries they're using I would appreciate it.

Greenbank 2006-01-05 15:08

Don't forget "-lgmp" at the end of the gcc line (that's a lower case L), i.e.

gcc octo.c -o octo -lgmp

Update:-

81616968619095 230 Greenbank (100000000000000 = 1E14)
2168016262545 162 Greenbank (10000000000000 = 1E13)

Kosmaj 2006-01-05 15:12

1 Attachment(s)
Here is my binary, for cygwin.

It looks like your compiler cannot find the library, find out its exact name using [I]ls[/I] and than specify that name using [I]-l[/I] option without leading "lib" and trailing "a" or give its full name without [I]-l[/I].

Greenbank 2006-01-05 16:11

75783835007265 138 Greenbank (100000000000000)


All times are UTC. The time now is 10:34.

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