![]() |
![]() |
#1 |
Apr 2019
5·41 Posts |
![]()
Hi, I've been toying with some C/C++ code on linux that uses GMP library to generate sequences of various large numbers (on the order of ~10kbit each).
I already have written some small utilities which are meant to be piped together, which filter out via trial division for example, and just read and write raw mpz data. The code for a filter utility looks more or less like this: Code:
int main() { mpz_t x; mpz_init(x); while (mpz_inp_raw(x, stdin)) { if (SatisfiesCondition(x)) mpz_out_raw(stdout, x); } return 0; } I would prefer to not have to convert to intermediate decimal ASCII string if possible. |
![]() |
![]() |
![]() |
#2 |
Sep 2002
Database er0rr
10010110000102 Posts |
![]()
Perhaps you should look into GWNUM programming. It is the library behind PFGW and LLR. You can include some GWNUM libraries to program with. Some things are quicker with GMP like "jacobi". You can find the GWNUM library with the source of Prime95/mprime.
![]() |
![]() |
![]() |
![]() |
#3 |
"Rashid Naimi"
Oct 2015
Remote to Here/There
241910 Posts |
![]()
You can write your output numbers to a text file and input that file to PFGW. Look in the PFGW folder for ABC file format specs.
|
![]() |
![]() |
![]() |
#4 |
"Mark"
Apr 2003
Between here and the
24·467 Posts |
![]()
You should also look into using a pfgw script file. It can read inputs, do math with them (or manipulate in other ways), then do factoring and PRP testing.
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PFGW help | lukerichards | Software | 2 | 2019-03-18 21:48 |
PFGW for Windows 98 | factorer | Software | 9 | 2018-09-18 00:59 |
PFGW GUI vs CMD | houding | Software | 1 | 2016-06-20 12:11 |
PFGW 3.3.6 or PFGW 3.4.2 Please update now! | Joe O | Sierpinski/Riesel Base 5 | 5 | 2010-09-30 14:07 |