Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/irredsol/fp/   (GAP Algebra Version 4.15.1©)  Datei vom 5.3.2021 mit Größe 6 kB image not shown  

Quelle  factint.tst   Sprache: unbekannt

 
Spracherkennung für: .tst vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

#############################################################################
##
#W  factint.tst              GAP4 Package `FactInt'               Stefan Kohl
##
##  For purposes of limiting the execution time, the testing numbers given
##  here are all 'easy' to factor. This does not mean that the factorization
##  routines provided by this package are not capable of factoring much
##  'harder' numbers.
##
#############################################################################

gap> START_TEST( "factint.tst" );
gap> oldwarninglevel := InfoLevel(InfoPrimeInt);;
gap> SetInfoLevel(InfoPrimeInt,0);
gap> SizeScreen([80,]);;
gap> TimeToString(120000);   
"120.000 sec."
gap> Factors(50);
255 ]
gap> Factors(480);
2222235 ]
gap> List([-5..5],Factors);
[ [ -5 ], [ -22 ], [ -3 ], [ -2 ], [ -1 ], [ 0 ], [ 1 ], [ 2 ], [ 3 ], 
  [ 22 ], [ 5 ] ]
gap> Factors(1234567890);
233536073803 ]
gap> Factors(-565634635);
[ -57110714891 ]
gap> for i in [1..6] do List([-100..1000],Factors); od;
gap> FACTINT_SMALLINTCACHE_LIMIT;
128
gap> FACTINT_SMALLINTCOUNT_THRESHOLD;
6561
gap> FactorsTDNC(-111111111111);
[ [ -371113371019901 ], [  ] ]
gap> Factors(54654564564564564565635556456356565653:TDHints:=[229719490001]);
333747137874122971949000122365944643585923 ]
gap> n := 113340573632421907304106191194427947366905934928197760786671165845749477377;;
gap> Factors(n:Pplus1Residues:=20);
43545476763656765745675656334553
  2602809339936229998169452129211659952808809 ]
gap> Factors(11111111111111111111122222222222222222222222);
2619719129809687279912014116490549910382430593 ]
gap> Factors(11111111111111111111122222222222222222222222); # cache test
2619719129809687279912014116490549910382430593 ]
gap> Factors(50718554723907260148296168907406660945083116452219147507);
298096872799120141170141183460469231731687303715884105727 ]
gap> Factors(1111111111111111111111122222222222222222222222:FBMethod:="CFRAC");
2377199611704003078111160311111111111111111111111 ]
gap> IntegerFactorization(Factorial(39)+1:ECMDeterministic);
795755448536314610264891493930705821478100704367 ]
gap> FactInt(Factorial(43)-1:ECMDeterministic);
[ [ 9760785788312829129879315843181378920130420431538741649 ], 
  [  ] ]
gap> Factors(1459^24-1);
222223333333571373971932833371009
  303889669433106434167229715134531280671081313380751265929 ]
gap> FactorsPminus1(NrPartitions(1503));
[ [ 22277533426114322508231091437327898056671629 ], [  ] ]
gap> FactorsPplus1(Factorial(55)-1);
[ [ 7339619277914269148257413069 ], 
  [ 106543529120049954955085076634537262459718863957 ] ]
gap> FactorsECM(Factorial(36)-1:ECMDeterministic);
[ [ 1551667708812397377509874128534536693708479 ], [  ] ]
gap> FactorsCFRAC(Factorial(24)-1);
625793187653991459181683 ]
gap> FactorsMPQS(NrPartitions(808));
59633202321891366982853893003 ]
gap> PartialFactorization(2^2520-1,1:ECMDeterministic);
3335577111317192931374143617173109
  113127151181211241281331337421433631
  1775001155975052185364566284237470275064461503237038206872038177608119296157\
087878698686398717615808207480422559459567744434135140975378474116949917957045\
104396930351429973613482339970114001009412140914076609547659265044566315586266\
145211371269272034884704362264417880875141979812983165607812150141862354024825\
698572505924547246710170612436193492220673272087649515528012142024743115464473\
386186222293571676555932312958262658143565657115649203788812681267737065369020\
622852371601041351687255688269532408962584175609619962374589583376546431331735\
863582094604231909335027826933784368517976014928231732006147154916818216594259\
992618766887000733537193713903855608987164201868581028990609565386771531256466\
024773 ]
gap> PartialFactorization(2^2520-1,2:ECMDeterministic);
3335577111317192931374143617173109
  11312715118121124128133133742143363110091321
  1429252133615419144492116923311157903211883700129247661
  4739238145622845617715867392988959882481
  2204698295625891988983471163731993859460847286091439810214792078377575009158\
986011776833351595131318898601749930961814718358944304474719682231551767344811\
565339046629561348986948041928574711613964210899396952646400471099082081952652\
013723312330052058554240031431720965560871084047199598210918504722840842746612\
195899563056794879292200451398293875421449150371712289245319932949324156103580\
704850849962576653383014634288375701994753735180665778665209012110029067165985\
418633494945653781005751384679211852659293120751077771054843613269921194523017\
82144915610291628624256354633343046383763266038772165593174014181173 ]
gap> PartialFactorization(2^2520-1,3:ECMDeterministic);
3335577111317192931374143617173109
  11312715118121124128133133742143363110091321
  142925213361541914449211692331129191387375400161681
  8617192737106681122921127681152041983431156492115790321
  18837001292476614739238145622845617715867392988959882481
  1869693240585592825908114984489377989385195920729226672119392374411116871861\
504702541920159947301846599966257064798558830572794047329751615893898828012778\
578677406481914935733747334552327197808629061996488471981006444285302109420254\
374593294866770891792116362223424959457044162424207853209111517437547546314828\
440115791460630270925153496004387364968883124980852708493281787883881033993809\
739023594428727351487933098842888559835215097140974360387925837498296293645036\
899584525281667158496149142447878715036661390597570622646089020614671414502360\
9647247 ]
gap> PartialFactorization(2^2520-1,4:ECMDeterministic);
3335577111317192931374143617173109
  11312715118121124128133133742143363110091321
  142925213361541914449211692331129191387375400161681
  8617192737106681122921127681152041649657664441870031
  9834311130641132552115649211711081176589126278577416361
  15790321188370012924766147392381456228456177158673929
  88959882481
  5641007675085930458929604182277903361377783610026558980727495610967273855468\
266486690378094930114698741990626328160515970269625052463140750203091475796073\
126219856355072266860597044732079695669180387256886140471942430853387419252716\
397580432223738498892703510308071455173517772690115005111522903215072688394628\
873852498972580640547482750477570132558609085559533977499200508997509629453611\
326095977349062939130656442256904494164305159469427700477716506307673781875161\
25082771673586610804285191323 ]
gap> PartialFactorization(2^2520-1,5:ECMDeterministic);
3335577111317192931374143617173109
  11312715118121124128133133742143363110091321
  142925213361541914449211692331129191387375400161681
  8617192737106681122921127681152041649657664441870031
  9834311130641132552115649211711081176589126278577416361
  15790321188370012924766147392381430839361456228456177158673929
  88959882481
  1309306480724710400573081386191616638614823219465911096439374677042860495624\
090967559107974568301965971486673504782334864309118927614215997828269798171034\
128476450032399028384177054039424149937215320319093626283588892160989770675274\
118601348548499610947269859660773068311536599064381911269133764966073442949570\
448799477021919694228560224440025137944304277612075925787848457280928338730316\
547400128872873093675082403220095875632938086979807701571100535149961329061381\
012220867335254010843 ]
gap> PartialFactorization(2^2520-1,6:ECMDeterministic);
3335577111317192931374143617173109
  11312715118121124128133133742143363110091321
  142925213361541914449211692331129191387375400161681
  8617192737106681122921127681152041649657664441870031
  9834311130641132552115649211711081176589126278577416361
  15790321188370012924766147392381269389009430839361755667361
  4562284561403884731897715867392988959882481118750098349
  1469197921811686922927211041815865690181469775495062434961
  14752046791901285717771626833408812908876721
  1736945952990905777323344246184179842077657862011867889681
  29728307155963706810228435378401164861463278712334259867127702044401
  11247702599676505481447137991664348691
  54169520413224311136354324156824071681
  15169173997557864184867895400813639018421
  517496882214135484318298195143896326867475066317761
  1344048385417946013983516746242551864720220367077696473507281 ]
gap> PartialFactorization(1234^120-1,7);
3335571113193141617389137157229241409
  421601180123413617249436342167476110373291242271
  1001676141241631644948771027453781386134183126053773433
  105031821211276430835868156932561315921173603545321537
  29830153069169511785115376764220139660647262861
  2886125709604838064627825247810155334962361
  455837190112911766269981368708223772739514601
  32656593856129905690515320200096406873880650776817929641209397041 ]
gap> Factors(-565634635);
[ -57110714891 ]
gap> Factors(11111111111111111111111111111111111111111111111111111111111111);
112791694331957336415063790604359909090909090909090909090909091 ]
gap> Factors(Product(Filtered([1..200],IsPrime))-1);
13720629434784328604523758357619780408302187874237918207
  1917155688123066068833010437 ]
gap> Factors(Fibonacci(500));
355511411011512514013001570601112128001
  135343900128143378001546516794800184817574770589638001
  158414167964045700001 ]
gap> Factors(Factorial(100)+1);
10114303149239350433007170616328107072379
  1235286816572997251398503017534378708348512400771465312124056290542248784139\
238223033271959567362883048251014777364474207 ]
gap> n := 140000000000000000000000000039090911699999999999999999945454534299999433;;
gap> Factors(n);
199999999999999999999999999899999989700000000000000000000000000545454597 ]
gap> Factors(-Fibonacci(1260));
[ -2222333511131719293141617183107181
  2112814215416319111009142725212121131249109441
  14196172156176713114616019761221352396817649409618288823481
  107833420811231752312110512245148311402072340046011983000765501001
  120570028745492370271501
  1538486683044957457804703332422378490845205172402364196823041 ]
gap> Factors((2^128+1)^6);
59649589127497217596495891274972175964958912749721759649589127497217
  59649589127497217596495891274972175704689200685129054721
  570468920068512905472157046892006851290547215704689200685129054721
  57046892006851290547215704689200685129054721 ]
gap> Factors(3^400-2^400);
555111317419710121128140112013121462111701
  5520151310174280198025012001700139756701104189401
  17834335570732819937984196743741414107401
  395779932917984661962111710614687897020017142469626326777699991356159201 ]
gap> Factors(2^242+1);
539721133389919614036962584010807014809213
  1339272539833668386958920468400193 ]
gap> Factors(2^1002+1);
51385771375005713581520519616848867394127395325377910797
  7925986174071573718208260781190156536114609
  1101620930989311809850574489702961813405877003583474955932500285761
  77510291046854672071894518915830832016429
  6592352576422405842686679637480708650164392620241
  187072209578355573530071639244871112681892570202113 ]
gap> Factors(3^303+1);
227607379963602441297481783456172594763
  3052105714865812880812770477621136663502524978969064590048175123903
  1017291527198723292208309354658785077827527 ]
gap> Factors(5^405+1);
2333337611634875211783502351677621164701
  1601850731472682400981182517282870121359683606111861
  600814511699220012238239441682666012066067271380136212224701233463
  27958214476418447045648661835559283181
  9442584081375858136862743180967454511932842103271857498082499786865007991183\
35443897718426923221761 ]
gap> Factors(6^246+1);                   
1337977873404670137448441257174521133001
  15918716269297453972620877830075109975781698496495921
  59589415533456305173269384769141358334611356937293327443617
  246179376206361788466441901958293949537091001 ]
gap> FactorsOfPowerPlusMinusOne(7^287+1);
[ [ 1636258751139039141791463273844607266604208732109666783
      80054033526990062178539434065448210481479155118150417911113 ], 
  [ 83404690754069739112749751
      1286644124759375777832137899965768754797607387483
      144427797665195352251683045671117428091185676255445610501653 ] ]
gap> Factors(7^287+1);                   
2221139111723484939989999931758047211636258751
  13903914179780095155931463273844607266604208732109666783
  80054033526990062178539434065448210481479155118150417
  7318598257434598572766074353405838030923
  83823446120252671068881628363968327388964408737925484911 ]
gap> Factors(10^210+1);                  
2961101281421354199012796122654934713014188901
  134898413952674112149944913841948414268113416160368344121
  4244517286814458192223320340849848654483879497562821
  139790941013628227711346421282448028612066894256984424869264385801 ]
gap> Factors(11^231+1);                   
22332337678919946346216007943958367991651
  1623931235774011169382127430372327011309581614893421169496361
  156379174020165511941987897476328997733160418704149053207551
  6608953735245011264309592040583524866430994330651
  1164439513543969580531315920300133078705833 ]
gap> Factors(12^303+1);
713196071213212112314932987591487513659
  52686047291862202798021464473146572769438508211723922167864504908608149557
    , 23648798515349572894998987860842035040840462710792821395657
  13745054507678430659791720945652348010150603799390812620405377
  2971259297253066332283096610300350786987686842744415299613364298372835792797\
3161994894362291830991307 ]
gap> Factors(2^2004-1);
33571330460985771323490237500571322331874758152051961
  6848867394111349743739132739532537791079779259861740715737
  1820826078119015653611460925129004796912072003423103
  1101620930989311809850574489702961813405877003583474955932500285761
  77510291046854672071894518915830832016429
  79638304766856507377778616296087448490695649
  6592352576422405842686679637480708650164392620241
  62357403192785191176690552862561408838653121833643
  187072209578355573530071639244871112681892570202113
  151092646351275754169926860141067686815825706612457363611594727781012756281,
  198950585925702911694795949136325395391616590334589163147577781735447402953 
 ]
gap> SetInfoLevel(InfoPrimeInt,oldwarninglevel);
gap> STOP_TEST( "factint.tst", 10000000000 );

#############################################################################
##
#E  factint.tst  . . . . . . . . . . . . . . . . . . . . . . . . .  ends here

[Dauer der Verarbeitung: 0.16 Sekunden, vorverarbeitet 2026-06-06]