mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Blogorrhea > enzocreti

Reply
 
Thread Tools
Old 2019-03-12, 10:07   #12
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

35×13 Posts
Default

ftp://mersenne.org/

the file: /gimps/p95v296b3.source.zip is the latest source code.
ATH is offline   Reply With Quote
Old 2019-03-12, 10:35   #13
enzocreti
 
Mar 2018

10000100102 Posts
Default What I have to write in CODE BLOCKS?

I have installed Prime95
In the window of Code Blocks what I have to write?
#include what?
then?
enzocreti is offline   Reply With Quote
Old 2019-03-12, 15:59   #14
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3,739 Posts
Default

Quote:
Originally Posted by enzocreti View Post
I have installed Prime95
In the window of Code Blocks what I have to write?
#include what?
then?
Have you compiled Prime95 or mprime form its source code? This depends on your operating system. What is your operating system and is your machine and operating system 64 bit or are parts 32-bits?

Last fiddled with by paulunderwood on 2019-03-12 at 16:03
paulunderwood is offline   Reply With Quote
Old 2019-03-12, 16:20   #15
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3,739 Posts
Default

Quote:
Originally Posted by enzocreti View Post
What is the source of Prime95?
The source is written in the C language (plus some object files already compiled from assembly by George). This will need to be "compiled" -- that is converted from C to an executable. Move into the correct directory (of the source) for your operating system and machine architecture and run make. This is probably in a drop-down menu of Code Block's IDE (integrate development environment).

(make is a program that will help to compile the source. A "Makefile" sets the compiler switches/flags, paths, executable name, resulting library object etc., apt for Prime95/mprime.)

Last fiddled with by paulunderwood on 2019-03-12 at 16:39
paulunderwood is offline   Reply With Quote
Old 2019-03-12, 16:42   #16
enzocreti
 
Mar 2018

2×5×53 Posts
Default C

Quote:
Originally Posted by paulunderwood View Post
Have you compiled Prime95 or mprime form its source code? This depends on your operating system. What is your operating system and is your machine and operating system 64 bit or are parts 32-bits?
windows 10 64 bits
enzocreti is offline   Reply With Quote
Old 2019-03-12, 16:49   #17
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

72338 Posts
Default

Quote:
Originally Posted by enzocreti View Post
windows 10 64 bits
Quote:
File: p95v296b3.source.zip 50384 KB 26/02/2019 22:39:00 GMT
from ftp://mersenne.org/gimps/

Have you downloaded and unzipped this file?

On Linux I would run in the gwnum directory make -f compil64 gwnum64.lib for the Windows () library you will need. I have no clue how to do this with Code Block under win10. So, I am handing you over to my colleagues...

Last fiddled with by paulunderwood on 2019-03-12 at 17:30
paulunderwood is offline   Reply With Quote
Old 2019-03-12, 17:41   #18
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

2×53×71 Posts
Default

GWNUM is not the most user friendly library for handling large numbers.

If you are new to C programming or this compiler, you should start with small programs and work your way up to GMP or other math library and then maybe GWNUM.
Prime95 is online now   Reply With Quote
Old 2019-03-13, 01:24   #19
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3,739 Posts
Default

Quote:
Originally Posted by Prime95 View Post
GWNUM is not the most user friendly library for handling large numbers.

If you are new to C programming or this compiler, you should start with small programs and work your way up to GMP or other math library and then maybe GWNUM.
Yes, every C programmer should read the book The C Programming Language by Kernighan and Ritchie also known as K&R. It is a slim book packed with the essentials of the language.

Last fiddled with by paulunderwood on 2019-03-13 at 01:27
paulunderwood is offline   Reply With Quote
Old 2019-03-13, 14:42   #20
enzocreti
 
Mar 2018

10000100102 Posts
Default GWNUM

Quote:
Originally Posted by paulunderwood View Post
Yes, every C programmer should read the book The C Programming Language by Kernighan and Ritchie also known as K&R. It is a slim book packed with the essentials of the language.



GWNUM can be used also for probable prime tests of not Mersenne primes? For every type of prime?

Last fiddled with by enzocreti on 2019-03-13 at 14:42
enzocreti is offline   Reply With Quote
Old 2019-03-13, 15:24   #21
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

1110100110112 Posts
Default

Quote:
Originally Posted by enzocreti View Post
GWNUM can be used also for probable prime tests of not Mersenne primes? For every type of prime?
You might find the scripting language that comes with openPFGW more suitable for your purposes. It is ultimately based on GWNUM and is BASIC like.

With GWNUM one should be doing FFT floating point overflow error detection. It can be very complicated.

What sort of numbers did you have in mind?

Last fiddled with by paulunderwood on 2019-03-13 at 15:25
paulunderwood is offline   Reply With Quote
Old 2019-03-14, 17:52   #22
enzocreti
 
Mar 2018

10228 Posts
Default PG NUMBERS

Quote:
Originally Posted by paulunderwood View Post
You might find the scripting language that comes with openPFGW more suitable for your purposes. It is ultimately based on GWNUM and is BASIC like.

With GWNUM one should be doing FFT floating point overflow error detection. It can be very complicated.

What sort of numbers did you have in mind?



Simply: number formed by the concatenation in base 10 of two consecutive Mersenne numbers.
Examples are 31, 73, 157, 3115, 40952047...

Last fiddled with by enzocreti on 2019-03-14 at 17:53
enzocreti is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
GWNUM program paulunderwood Programming 54 2021-02-10 12:46
LLR V3.8.2 using gwnum 26.2 is available! Jean Penné Software 25 2010-11-01 15:18
GWNUM? Unregistered Information & Answers 3 2010-09-12 19:52
GWNUM as DLL? Cyclamen Persicum Software 1 2007-01-02 20:53
GWNUM library bearnol Software 6 2006-02-24 11:19

All times are UTC. The time now is 04:29.


Sat Jul 17 04:29:47 UTC 2021 up 50 days, 2:17, 1 user, load averages: 2.04, 2.19, 2.28

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.