[GAP Forum] GAP
Sandeep Murthy
s.murthy at mykolab.com
Wed Apr 15 17:57:52 BST 2015
PrintFactorsInt(<integer>) is the command you want, as described here
http://www.gap-system.org/Manuals/doc/ref/chap14.html#X82C989DB84744B36
So PrintFactorsInt(600); displays
2^3*3*5^2
I’m not sure what your other question is exactly. You want to use Fermat’s
little theorem to test whether a given integer is a prime?
Sandeep Murthy
s.murthy at mykolab.com
> On 15 Apr 2015, at 16:53, Wanderley Tiowann <sgwvieira at gmail.com> wrote:
>
> Hi,
>
> 1) Thanks for your help. But I need to do more exercises.
> I have to do an algorithm to show Little Theorem Fermat. Can you give me one exemple?
>
> 2) How can I factor 600 in GAP and put it in this way = 2^3*3*5^2?
>
>
More information about the Forum
mailing list