Re: [R] GMP help - converting rosetta RSA-code to R

2019-08-17 Thread Jeff Newmiller
Please post in plain text. You assume significant risk that we will receive a corrupt version of your code if you fail to do this. As far as I can see, the gmp package does not currently support a raw interface to create bigz values. Here is my workaround: plaintext <- "Rossetta Code" st

[R] GMP help - converting rosetta RSA-code to R

2019-08-17 Thread Martin Møller Skarbiniks Pedersen
Hi, I am trying to make a R version a RosettaCode task involving big number. More precise, I am trying to convert the c-solution http://rosettacode.org/wiki/RSA_code#C to R. These two lines in C gives me problems: const char *plaintext = "Rossetta Code"; mpz_import(pt, strlen(plaintext)