Prime decomposition: Difference between revisions

Content deleted Content added
m →‎{{header|F_Sharp|F#}}: Fix highlighting
Toucan (talk | contribs)
→‎{{header|Fortran}}: adding GAP (built-in)
Line 739: Line 739:


end program Primes</lang>
end program Primes</lang>
=={{header|GAP}}==
Built-in function :
<lang gap>FactorsInt(2^67-1);
# [ 193707721, 761838257287 ]</lang>
Or using the [http://www.gap-system.org/Manuals/pkg/factint/doc/chap0.html FactInt] package :
<lang gap>FactInt(2^67-1);
# [ [ 193707721, 761838257287 ], [ ] ]</lang>


=={{header|Haskell}}==
=={{header|Haskell}}==