Vahan Stepanyan on Fri, 27 Nov 2026 21:13:55 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Reading Primo certificates back into PARI


Hi,

primecertexport(c,1) writes Primo format 4, but nothing reads it back. The attached GP script defines a primecertimport that does (with tests). I suggest adding it to PARI.

It only handles elliptic curve steps, so it reads files from PARI and from CM, but NOT most files written by Primo itself, which also contain N-1 and N+1 steps. The rule and the other details are in the header of the script.

Tested on 1726 certificates of 745-digit primes: export, import, primecertisvalid.

Written with AI help (Claude), According to your guidelines, sending GP and not C code.

Thanks,
-Vahan Stepanyan

Attachment: primo_cert.gp
Description: Binary data

Attachment: primo_cert_tests.gp
Description: Binary data