Prime decomposition: Difference between revisions

→‎{{header|Fortran}}: adding GAP (built-in)
m (→‎{{header|F_Sharp|F#}}: Fix highlighting)
(→‎{{header|Fortran}}: adding GAP (built-in))
Line 739:
 
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}}==
506

edits