René's URL Explorer Experiment


Title: Can python calculate simple factorial? · Issue #117524 · python/cpython · GitHub

Open Graph Title: Can python calculate simple factorial? · Issue #117524 · python/cpython

X Title: Can python calculate simple factorial? · Issue #117524 · python/cpython

Description: Bug report Bug description: # Add a code block here, if required import sys import math sys.set_int_max_str_digits(60000) number = int(input("please Enter integer number: ")) factorial = 1 for i in range(1, number+1): factorial = factori...

Open Graph Description: Bug report Bug description: # Add a code block here, if required import sys import math sys.set_int_max_str_digits(60000) number = int(input("please Enter integer number: ")) factorial = 1 for i in...

X Description: Bug report Bug description: # Add a code block here, if required import sys import math sys.set_int_max_str_digits(60000) number = int(input("please Enter integer number: ")) factorial = ...

Opengraph URL: https://github.com/python/cpython/issues/117524

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Can python calculate simple factorial?","articleBody":"# Bug report\r\n\r\n### Bug description:\r\n\r\n```python\r\n# Add a code block here, if required\r\nimport sys\r\nimport math\r\nsys.set_int_max_str_digits(60000)  \r\n\r\nnumber = int(input(\"please Enter integer number: \"))\r\nfactorial = 1\r\nfor i in range(1, number+1):\r\n    factorial = factorial * i\r\nprint(\"The factorial of {} is: {}\".format(number, factorial))\r\n```\r\nThis is simple code for calculating factorial but for big numbers obviously the result is WRONG.\r\nAny number after 5008 factorial you can see that the zeros in 5008! disappear and the first digit exactly before the zero in 5009! is wrong so the result for any number bigger than 5008 for this code is obviously wrong.  Here is 5008!\r\n```\r\n166371726305376216080859658928605820957297538057446664370644757049430456606680234481382461644927213647970477205890844130547892418849183796370645336114010629075713297024937759356157650563825068787319539233302983002876102243962360646967047306048027257239345787204944256562863844881348386515315723079833770109741372480713124832514236408075342080421800447862435434163807100882747379019905648921680540065916873597481311881886735145515963232066340846144994201649976676065130675678024702219737473352429633970142724201455835265277221227442635943202517659016686705657920260568472951407053395979723080269193164451355958387184148003268205559377263234013715426527681566823260168380900349281177616637605922819617670591898919420105139666541352882857669406967861505223055421365813346472953949441232763898187392127735788235975014840265411541701918473444922500309481404936786388131437275227488608518967617883431180500222530118273648943917155680339018575506937140579769150042393046771915013665188264715119723168832766095472258385013823677922907781063842983267047145175863788095609314604262394309369552393590563868872855323881747020343809736972429082465883859762761178981728176930155753775605802604804569659322830114252121061200114813543096909438379364901171346905810808810884746480019603186500324302254418728378241254130873012651000803712531561274610889713251978956980522594012475241123275885471022592535541997831614037592983634939378946122980857420142333913235051414012267361900822879408520887137892281982128433843274943094913098229582576031190928451983079204111049871442902313550341426617488350528867838400622147372099000058120268942815456997502316361933032257952391931383923390515665412465329990828770487520306574150130088792025322013842923320305746338838227487501529425928830490050955795724174713686509916833433303240420743819764252768292477241450341824637409978817201485119895193525038311238348783239514213728296842249835285309047981135350566244342688903620715988520897416414719942926906209193707236598473615686281073480470010578699469067019227402378414397943715593461238837596829673506934910494899274495226690726692315267592881335774611758267482839132712799912138064951497219761946727827830651088452750146080412579048206906012396865607091823211881446426585306217452821581816763871708611473674984302472702554797304286363946462648491173485511006631110682494202979206153232521337778251997657821414562813569301945893031680859552744124473864265361332507835731732655964702587081009484867436588191547907646575128906537023739389291163006574657484081236987670308962355836587112598746110859928712922645336751314396424507584826238495126897091467645911427976826044645176146829302168302752367889863498705554809165936684269642540542980334016614324088886699878155699728590440994501198094297969448791254558268923945231544186517490477028811680036546767378285567360375260961642005336360046805108905046254605359040172210755821986942322346911125642864558498114803178059623198151616790176292483140948902589053980714530939270388019958991095180105715050091317559082879320268628315794697336457137514546919271198455165260162541892568355796721662109075900480818628622249874629496844788426346400175456773382591911102463087546029606308243325812562540473345323770808930738412317661783865591621223498911365109549388353601725574821697813373158440960824676000121776964590756353220816118949813390843162275769221568621234642198901512340438139901396259272931327122400299242198145490985107833698463948518037178180584410029020652734048288883665063816669202379919866645410467242972280808261386669093432511566782125295983910288694962235420809130203269126594213276264969776290405677065750825529742516644277967828194836840536598849830427140274056500635628126345011631011382142584280647518873027481297658301567596104222397099801415484321691684511459042531170255639304712263914406733399589060858185109062780552761248239257646856932383027107214342678858560321166123784975016134708331858414519332375945517367337269904080476759612725292078452671017041857588958152940950580602692925671291363627188307011664112621276165802847212856090748481268091907299099273478043360590960273914798514234386132323550513375527121033004593146863426747598324047202558105169313642997648123438254435331534241255506045945019412158939188332044499726737969182605698219510887103617645495293718347227982941396728866012636875646667582215754461298201191162853653423513345817526665026172129020343163648725534933563305526833551174516447599103997779079142585190353177913765554181618547279981305654467844123836629443183362642984013458009538366100017882618211510726353062298935330292084861184088777600010363798847974177143287691657806831182009272880576592305281760137434782295686566562885318575363869680008818208832264367267915116069314690193827794978425334989399790166326410753145620343973267198476479235981133152040239188879090634681601636434583268311583547621815079166315475003743375574829045206219024477027136272992102751967588201498612162930846779566117300846082401577566021174975231202970008000597009146404837416511161359189718269481973731647386454772509166202387472288105440420045685953335455136628202219250344328695294291700215408874268370819336041066493040531612726331485002371199915305107981844501997707531255428084423624493336823329301296056176415692382695917738500839762617361861866041705977447008507142963645020885188396719139797638034475706007055239401552742100074162562380311555178342836167213194898004320230957937106800206544515524545205253749229754987140198249359811498408015884553604233547526082780785540081207424289031078171477441266560613012929976490143336180569749741939960815912855476360399884527830763437729733461102867353053804797611168878693239497720862488067192905841557138706629898821238530158933907915702778508730877990421612804887780582862760015518755627803284534942334069669582037154094634464054051132370455135465168608199797263704466090276955204970535885602528244210474171393333015649281266484455905175515120965885581674339147307279637994957086267300682865128457435053937949513662611980590163423839258091081209379505781722515237139796843401873678886907088447839999310935212518720806043136105701114852971582332423172276123237842441407664135927864815311216037143598785178769419322475512631753194527521022956265286093576271858806874331025582449104192439036021635333447152583316231272999194515796879531303862325572175161385798957752028091387380620071008736617255453067680075833420770811074538343636517203880639483719745341428098736728265845613199053072041925171964549761695656312818523360887415255429487141576125769991949257661530917645623651754342070916208851725615069528703806679690166313230390604676178288035934053966344024265256673015812873528443745104681028166745794075861012758445402510455233850254888980729482705438330784305306677302647654430138707411216912441334685213788623056347080482491283032403065090498317230104706547418981010372489495221974861290941104831683732936243179608828908774068490327958274027802402890588918554323444660263277420926353023444389223874314527851641054885946443210018899277598167320740101277660550661392039241943942418443552637289215745700046119443207806958952752154246155108019046836523983078928626285545429117794775317854943973761752464497258615639773254974445640187760214852822983017432168269824555727785843876063037847687135842739919503708994160906290164286260646591345878146352907436150098991189099296657315429739630058351451917513423579134214309335125968941228553290673475728031530715101494973861981260404509844401135135709450203410493945806935994202737656746478620799405208231428790853759990374495745766777801432893826853988973162538786856761649761237394341215768242464370524688983329111489615782276857428976453941416003921651297198850263302010208890935365669800246466121139018589579431297484043008312575340729438290089694812504235802536481138871959787062665682649849645084894422739858990126091502399974588257832542943557267477249094700761611390981453011752062220612268471631804282780794956549870248518080038034350203226301788744561631453147249291285620035275140086485995774336582242066596983735801627393689399388020903783613952623669652609266631887281406491019669061553348246752366313831420869305867034925445567463997101893055569069440232427130650785384634069065690530029433737843859177232278127776607100197169962188369028729959461529446285196298965546829942786835629814310647874828491092978905747267023998430440397438848184775696992664387531423673007674647499038360850735986317803668331508996305681146129523271595702209574400116350486768073067158411450997033159545467453417180906198196336906252104868178383311417375981121199967379628470070627582212243598937311947910440691850521278160094507196907079794572139644539084936720712845925393986970899436298682864088198381822636871109474303079660812588151646673030294527524979423602875903977120232739609647764178544890098697974075805416988470722977110076406482227261911433203710503498693534226771806560438899816402025494312811749448116759683530078262240025500458496791186454797483051379344595744393109411314361678143448754379359626498902594730550387190401207834078725938283095406335738741050800933718187692898199334610417200634658565511981793366988518200634317141943727766487089237938100490803454077150470536078849003562720343733231417516561754238263082560717182749027919991475749806458682799281741340109712068250223532311938427866681484291984093180513591938477126199435740874468670416197927103247479253116722476979820269636519323747754291595983931892213387311693682035292320586256422735976406760282071945454465060138747097053213563529246521704652380530679821915351302485472294039751487614597312734282216284251114768659776428838438878444386942102401737937193696058941958985109303458662261851854679768366404471307381324417031612315777221574281613564632881666629887877062167716959769254992438843022866091644039674658765084578616472748464835715716527247998903904910862679512602260683412109167432938281881944135904083410928937272695828188025893949493871991852735548060867278720372254240221926501536881351854894470369708769830893992507309056667340999144938049429413996303744106462429037471445466692726140521398584760804855645743251343814798119549441010685767400062936946603357473172197622530453053202721776939668704486450493223814651372599270389906595581056727711178119884843708305257779107406373466699243878676320932132107602942828123069083721431837111163341114187206774951528561518121054143399178253535122023167254957408033865154910647569756625342279320535533330644140369130670388522011734501957015197018247372914827347661533215314369223970593315491297680277992232269822057750610731860375565540990085398208991408969016139015301682232334443456843874239282292487903829392456227538776105414778004923056351342661028937053995713467391348060411385534827548299777530286933823511091997869573120420696747931506821975557764528926227739405144456052277830931276843796728160396589863803061100986478358693388410684014585742834001579423913334747090446063778792960572948196477512322842698381920785415475173424688101339262657731544045343662357425394698344003764145745736596254300977140267714361322642472148160177119153601052492474102594631910555561552913570229055648268944978146114832912515258758007376399167826021684369931187140364762543410342845176450624379705386084247486636404091301725379218966365222788038032659206995510852438097136523827899022822140045283515005400932581673555411959606926383376188280905895291335810474876107377158893334573277954326051919286785169656886666413744942709326702883090500542900394491655017954450154403379076542303361131275027533681999092845697786495295875808105875468910685595121607899322080777256058240453309642933917560787630630790586271542680262116006956989535419625687653623345571488380881006114320771386109373311072524091783856418812713883814932656484963481671753313165208800781028685953182577628254397620055861948676354314505755761212192351522039276275500612622765864246438331736035116961783389028178280472582586451037459875504004591989228997175422159770232134453241898811907786976999183637882695961241420266416885110956561138382718530547940556383011916782000296437813381834185136907161048056403750291557780087305732536729435103782584458799458944034545827336955124108742966089877751520255601443786607835880801619768400394392769746350635446160207948838145991739070254285164852739729560824548936771872431031466669609287808413534278178180096747399345696443672649356169718063097843178009506569602663837756988705113917509734991857440085812250221132193442366861371361251487026024806312706127701235201563370013996156103064693360814771194446485971112428990972466985004168349245563652701197829659050115697344796206368353377323171926777879164249089792331600909612721872730627535906680097889824474074337554999665578848659969364502596073818865744760476899898711840006441983160434603594169446718151777796618451603838357525636863543702290971437891697495305028895503278989429213257708687491594958116547216189949597251463569192671677104548099788099838666089403760751765986266016209274760198832174066733800043903844827576316906266099143761521385459109822473866812563375906644708021828662218883878411069052806953249798987958330556089574353038378098469188466912184513841381257061174752043017537600407921479201034338120551584430486839136462932989422651942886220115087915921439964079092105253789050237170113409841250671974263160254056145298037438787395411951109486391098070246650478823615551368404272447387558220069040025812203685907152308329768223521106033219902320680005356072692787017415908308432175129595942812564858345023563495760173076373977880608051850713946757623466729975666421500470485610980430808067194215536395915663617467674072670855401548590640271241012516722875013343763000849580876390765873981011058797022049642325377410183276235746681700899467697733854782175949120285401590430938630908044720260533933765563845496421433707240326061241107358809619493700270114315836521474285908799703839803052892638700163770079633917856474475662391031947459619789224767791145123362013996272552186269520867411045798616231447629430799954845019422417682368371354958672603259071756915101055427514418502967062585769862690672950362239146014992940765953275674475767589770196978735187403884567461261654196874301548184578285560989039717000072666386380522878779657096307825598897171864153207365066324022326813366018462696315924148161993209235583296047484129128872153511536475697582936564585449881018510811958020983339732124021524084920573842933937759824429688101980555634989434378357561021464446035088681247208201633521979266613519186288975781621548700844245778854964941722244493170795570398645062358913558872899537305735361950670495455421504747695868249262678065860336091082187241875052995440556062965093251226965642148846274387229006445570754937593389777198332942157632850825116487584973435049487521175465352413119806872958793541602805857589406592568529824527027819504294741858069807288980901055937667572459862560277455304151963845027175062653847530295106920430789136678151143661934501230755033521766869866455100951423508907170678342564082015605173295895868147525849999539489812315878736926238310400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\r\n```\r\nThe last digit before the zeros starting are 4 so in 5009! we expect that it was 6 because 9*4=36 so we know that in the 5009! we have a lots of number but the last one before the zeros getting to started is 6 but it is not and the zeros are disappear in any number after 5008! including 5009!  Here is the result for 5009! with this code:\r\n```\r\n833355977063629466349026031573386557175103368129750341832559588060597157142861294517244750379440413162684120324307238249914393126015561636020562488595079241040247904797913236614993671674199769555683572019614641861406396140007464480657939955994568531511883048109565781123384999010674068055216456906887354479694534755892042286063810168049388480832798443342939089726509768321681621510707395448697825190177619849783891216370656343889459829420301298340275956064733170410239554471225733418665004022320036556444905525092278843773601128260163439501410954014583708640522585187481013597930460462432909068388560736841995561405397348370441646920711539174700571477156968217710183419929849549418681737768067403464911994821687375306644589705636590234066059502018279662284605621359052483026332751134914366020647167828563273998849334889446412384909633485616804050192357328363018150369311614490440071508797978106783125614653362432707560081032802818144044714248137164063672562346771280522303448928017958034693352683325372220542250534242802715845075348789503184639150185901714570907056852750333095632087939495134419184132317323670824902142972494897274071612253551670745519476438243150170662009465247466089423548056042288874395551375101037372419376842238789967276651206341333721695118418192361180124429992383410446610441941542920368863025796070590424525946573679162595515437673408488482786488910324352166010529867138554714303255027411349141130011114817492950571394372532787447215761221802957281123673702440448481325120964189962419709031979123340235360615983243733392248806057497688573660205926999147799099002548716336186843891291124427134562624100489102656922558580083531184302072263092968051038837924061311371989215629918001614759254837967339202911411483411240681484895160894477511924665237580782391140855728173418667415931267505793199142116377018502424762199608786583895362238965555024366916900992889055246726696565038882829424944113021337506970986317912528718236166386501175158821332194120873201851279548121754340972581897063674282988705640556699310058513477719300071407647345337522519834596236966668950465946590493850001807175372742610895030297161821541215758414759899567342049573787591159689603731302059825481716786608452468392216095899825922942468314165150765798843221183303320170233388434871637996371085767096979697170397007831406292287988924632215233408613462722843621541699380931264256268027465545133168633446978195689425499695319489586105194914531749180248873727195258688776509700989870251463469401694820692843951910600959435499932459337762916071240577592440385464847007119269297382923029530491787333811690358492394628622090627531161438370342735921657627687319467974561028486610760326265016124039112176851506639485579788493089221149361233479689681899940509518941456501254338528968995394082369040041664804830266109799437317705303062757797832406908119682156864804729827474446790505376689318243432222603675912332594092635677828345108573517057049118900652599541448501993049048053013053068571389399085474805373591974586395757149526685907409653446142515225559233815638958313801810365518629433061922788154172339874894185778805504361185508420510768849622019149695545227569118478862977873402882712237605518062297997990818995125765230986726767981934068707299167875382748430708506047027833732886263191043404281884347186150630772770802084609980815635098573283067939819615274733399839328030837223764322774297675313254642766093862698113017556103098904170510764344405138995605918126848225506547309835364449544847879018278304657696034721018612026861030420048154568581285825489003450438011665607583406636073065837222832933188175055110414300811233609438642036422345885078480265871188340851427937734247823638800609545632749011683861284862163259736013152204661763422034994653819970432552088886049987072905290160967353647717898344038631810497277303729947263327598541605838649211295467788781092430441553106374306582780036642478402528648721114038939855818754034278798327335871111096492992384949539108088900140988020969429124362664663091388081221458238888864687498440408586229821425540119972314506461689196158559142671872363661188260851519193200120012039225757800040136808664521498015349254320007072638904578720005152437613548793092037775219450302216466575655014448829784138602235504126394355210899131230487635671942381530033502020786285926235201264966553456214889857298110114157919318714096642689766534733949998378349199991065116096194262898906716466204482218597383909257833152886023911924875407425209218479068170051660895727303325426360023229431216297676880905463478706923411169777675794989574034621457228302489055367069433053069671100686998451912268429502653310728047513954417390684447858808150857156336528410824519094011913492560743997623227164170408040812215644986816391197283180883425046932502961903548943128991462506412302962095397168684493029495958569558097095364989120142596900827590972721990037671731544074214293750568254318687437951093605428925591417442684605649301306548324120611518846681559938026749502028200065450933095676770074990418814341830619304407248181298811835206421821758751955498413507758848691120151064008840940257294779370664916224974742434729107126378983051210269434054229702063640022848146194408376877340375763285881059110506517024058439274877935087124148056470191945387666203144923851952150706370950365566087002905241032065612279104897909613908679166171246368914688811389339694162377685179271480274962980579888319266361570893244103640036868306967962234581478262446933116029891842730585253031043295795525751565729003605839558148648954770266767988263756670560930503304202110581766252239127970928473876457377263726907493081089243021599904294059588234906664262571446508231234344913374436644083800202728569265360359707781509163195583797566099944749755217550232967854021858539682892939559564917733446939666652235526151354974936424104860024030446742122043609773545029558472784493895670646197268621697414250983063975250265124509205075387249863820639629024155240918120878606764788862163706716740045112909120471428443292185175189113936023410776128590010843778225777781944460648078822833242388599985257544517606035230556548474479506272517470068753456884298534655903107669931101298352789010989656862674859893881130052286314960456021386279842772451751388352803987932818042723545740763633524107142487562899927131432371385236787289831002446452965329626569572301046388791025383381466979379908709759389525935682761715832564416009499849604640992672362563275314674238123173952204415213346572271883620676514056837858003186370429756333542470907983514685063014446301092154813981889673831626608366486928871637499433219290138293605883269277367658568043062971026538822977044771993676317417217544670675136206683503974719229347270087229682525987812907053021174870266355926738904473978871540598898585281146608962101040564785422785514418645438235867212889242526136798836709306953038306071005594475096021675880955799881566872080206323994101903818277642086660624004049309068052742994605262236078959893038606134303258756601420102294432945622386441470008870043923705734038984666481489220109587167299801698262912724562897207573983755160181681670211531012291027905057394335540618990936067405604148631242353489064297054451034029567135414364572618094666768405739624234166998211700490916197790321934317730863551199640479291975199756579064863436284256794078351751979607432909879578776051503635081713347675845846866198376956492987565806962282422654824738707883279475459645978426613823432983439921709937351943388324074664133366189810605285894768636068883164174546942394961512922643111411584220688031226813386483791785849190545790007377365178711630766571156783365519103654038108255149783126504031958167117495519451485453424778861743057792552763643551347669040968879769136334695246640029434548800785344115203371369097571428637689881713756395059281315833717134905234024609646573396892404393096872230236163503953681541592335521472712583483207604278352793540715356114911457426098135866079663046852774403707652449001937358300074827062910514060167960545659821509211948814571700049670756693176693208352833651940450511584291532630351614990201534596707052122288691961289919816559123392565113517522329320721367982602865981587\r\n```\r\nIn the line `sys.set_int_max_str_digits(60000)`, I make the int max str digits so much bigger than the digits of 5009!.  Max digits (60000) is for 20000! so it is not overflowing, but it is still strange that python really can not calculate the simple factorial.  Of course I test the math.factorial code with import math but you can test that this happened after 5015! again the zeros disappear and you can calculate again the first digit before the zeros is WRONG.\r\n\r\n### CPython versions tested on:\r\n3.12\r\n\r\n### Operating systems tested on:\r\nWindows\r\n","author":{"url":"https://github.com/amir80aaf","@type":"Person","name":"amir80aaf"},"datePublished":"2024-04-03T22:07:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/117524/cpython/issues/117524"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:edb6efc2-6e5d-0127-5d7a-ab1898d1f7f6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE28A:BB9B6:F70AE1:15002AD:6969F323
html-safe-nonce8262514bab1e6af326160819358bbdfd4a4a0ee1bfb014e444f53cc97dbb9b8c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjhBOkJCOUI2OkY3MEFFMToxNTAwMkFEOjY5NjlGMzIzIiwidmlzaXRvcl9pZCI6IjY2Nzg5NzA2ODAxODA2MDE2MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6bc70e3e3f5bb10323c1f64e7b8cfe9f92fd6c7c239d0eda863a9fdfa977d8d9
hovercard-subject-tagissue:2224019063
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/117524/issue_layout
twitter:imagehttps://opengraph.githubassets.com/75cc0818c22b2ec3f1a0c7401f9cc195789547723cb5d2ed471850ab31695d78/python/cpython/issues/117524
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/75cc0818c22b2ec3f1a0c7401f9cc195789547723cb5d2ed471850ab31695d78/python/cpython/issues/117524
og:image:altBug report Bug description: # Add a code block here, if required import sys import math sys.set_int_max_str_digits(60000) number = int(input("please Enter integer number: ")) factorial = 1 for i in...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameamir80aaf
hostnamegithub.com
expected-hostnamegithub.com
None7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebdde15ad1b403e23b08bbd89b53fbe6bdf688cad
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/117524#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F117524
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F117524
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/117524
Reloadhttps://github.com/python/cpython/issues/117524
Reloadhttps://github.com/python/cpython/issues/117524
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/117524
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/issues/117524
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/117524
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/117524
Can python calculate simple factorial?https://github.com/python/cpython/issues/117524#top
https://github.com/amir80aaf
https://github.com/amir80aaf
amir80aafhttps://github.com/amir80aaf
on Apr 3, 2024https://github.com/python/cpython/issues/117524#issue-2224019063
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.