Hello pvfki Welcome to the Monastery.

Perl is in principle a Text and Languague manipulation tool. Math tends to be handed over to C code. Essentially you need to know how Perl relates to C, which is usually a more advanced level approach.

Having had a quick look on for the Math::Prime::Util::GMP module, the top result being Math::Prime::Util::GMP.

A secondary result was this module Math::Prime::Util::PP. You may find this to be of more use as it is a pure perl Module. This means you would not need to get involved with the under the hood implementations. Unless of course you are proficient already with that level of hacking.

Essentially you can mess around with the subroutines to your liking. This is of interest to me, and that Perl primarily manipulates text appeals to the arithmetically minded out there. I think a main concern is how to determine what all these internal optimisations these programs do, are.

There is also Perl 6. Which is investigating user created operations and inlining low level languages right into the script.

Naturally, do update this thread with any algorithms that crack the primes you find. Good Luck.


In reply to Re: Copy source code? by Don Coyote
in thread Copy source code? by pvfki

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.