[ prog / sol / mona ]

prog


e and the Stern-Brocot tree

25 2021-02-23 23:56
target 2.236067977499790
result 2.236067977499790
41332294493938545531741898189124475002595083290489742271982042410001179649590638352971327178662782342658715702623030919737457907830190691919815009012258506376641135023825853565815239172591664165125213495590102205194513046640807952860130344653843839739939014372203482062252430269007112899956699379555747989512246507615679658302303597205403785255823841691991082530008399436256706957923656044401564042746883350613913909297196677594960296197551329608870980667422294986691904386738935339267820859141352189405773882440494245555502768587027398841266564236644931168995594325256768307938601042996121095218241154575833662343043702732992390353103692853602670343958004075610587622455232284763903928028648731969351298672275652254240329774371782479484528772043935076738418647432348313216320003488034702089990883852569243503909749609181481316530786070722847681935414366840677535822771205760207869055158774687324451786213766720466147055533425266225306535307310450569765855050917117310080021623332198083686457831950357034237316279546694295104672547709923461351337599635696874489909962163561569998895704141643514246636570145413107594734738158346892744164182479359093299630818413585724011399825669588321391668100430142680865137048656972350481497356791937266235756440335503077080610088030645733619795947172505340600403178545449010069030779945613043875596021032181052174542895568049342840041819628616283091446792264365775194267951629158048818995367725670881481269134411330911655910252452531346900379867176605513744986701481901397038137684255542940091075132568064399281896930450391998725001
18484364030897371437300920331810666605620710023854620676063981218524652362414027825042685017628799482783457930163920239444169022341244320998258403142770892372144915632343436000992920792602361123265031091519899666493465827806254868440765822317542750159888888783785299054848253120329811978818108194558415103032630528570493513177986315310466471480532082979588479340324654453261594178812021489384865926085887335446285369050537228888493984139295507672130875197799909665706437635949989954884651880162170248896892053994937480676824100235778078258089007324143972798519797707032130647969884610321425997189568119602840375894038155972908248004382498468916557706979429998716578160611084323023757946616513714721274482895333064156415741467388984618053241491703589401980162709229995190315146112057114148528371268073240697867276018185731510023421667460054167043946189996319239451804850583222207623709979312120485235589607032199701387734728901493075402111739944241663097291682065128415467408794012133045576298823323231644319444771309101979838714607268362885013353236236279028547075826693271711076508425978753112672873471483112345162587327323284559170894801540946256076581492385877327920830212228117773961574323020309037154581962604279919770924565083410929733620139585525373839607694142835671049697791915617732496134164500439645102443987515076670635346496272691715990210824938942259376967327736103437367741646251904790549748690944569347164625686510650942902612493691144502089014530540918554198933184653476942446080685583723088707560004626657585412385543184301378502185399284958449745001
stack 6

$ python3 -m timeit -s 'import flake.sbtree as mod' 'mod.work_speclimit (mod.Specs.Sqrt5 (), 10000)'
10000 loops, best of 3: 93.6 usec per loop
54


VIP:

do not edit these