{"id":13729899,"url":"https://github.com/daidodo/huge-long-number","last_synced_at":"2025-05-08T02:30:52.453Z","repository":{"id":28626131,"uuid":"32144885","full_name":"daidodo/huge-long-number","owner":"daidodo","description":"This is an implementation of arbitrary range of integers written in C++14","archived":false,"fork":false,"pushed_at":"2019-05-31T23:26:17.000Z","size":493,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-14T20:38:41.256Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daidodo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-13T08:48:58.000Z","updated_at":"2023-08-04T07:04:47.000Z","dependencies_parsed_at":"2022-08-02T20:00:13.450Z","dependency_job_id":null,"html_url":"https://github.com/daidodo/huge-long-number","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daidodo%2Fhuge-long-number","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daidodo%2Fhuge-long-number/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daidodo%2Fhuge-long-number/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daidodo%2Fhuge-long-number/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daidodo","download_url":"https://codeload.github.com/daidodo/huge-long-number/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252986621,"owners_count":21836196,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T02:01:07.097Z","updated_at":"2025-05-08T02:30:52.178Z","avatar_url":"https://github.com/daidodo.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# Huge Long Number\n\nThis is a library of arbitrary range of integers written in C++14.\n\nclass *`HugeNumber`* can represent arbitrary range of signed integers.\n\nHere is an example of computing 1000!(=1\\*2\\*3\\*...\\*1000):\n\n```C++\n#include \u003ciostream\u003e\n#include \"huge_number.h\"\n\nusing namespace std;\nusing namespace dozerg;\n\nint main()\n{\n    HugeNumber a(1);\n    for (int i = 2; i \u003c= 1000; ++i)\n        a *= i;\n    cout \u003c\u003c \"1000! = \\n\"\n        \u003c\u003c a \u003c\u003c endl;\n    return 0;\n}\n```\n\nwhich produces the result:\n\n    $ time ./1000\n    1000! = \n    40238726007709377354370243392300398571937486421071\n    46325437999104299385123986290205920442084869694048\n    00479988610197196058631666872994808558901323829669\n    94459099742450408707375991882362772718873251977950\n    59509952761208749754624970436014182780946464962910\n    56393887437886487337119181045825783647849977012476\n    63288983595573543251318532395846307555740911426241\n    74743493475534286465766116677973966688202912073791\n    43853719588249808126867838374559731746136085379534\n    52422158659320192809087829730843139284440328123155\n    86110369768013573042161687476096758713483120254785\n    89320767169132448426236131412508780208000261683151\n    02734182797770478463586817016436502415369139828126\n    48102130927612448963599287051149649754199093422215\n    66832572080821333186116811553615836546984046708975\n    60290095053761647584772842188967964624494516076535\n    34081989013854424879849599533191017233555566021394\n    50399736280750137837615307127761926849034352625200\n    01588853514733161170210396817592151090778801939317\n    81141945452572238655414610628921879602238389714760\n    88506276862967146674697562911234082439208160153780\n    88989396451826324367161676217916890977991190375403\n    12746222899880051954444142820121873617459926429565\n    81746628302955570299024324153181617210465832036786\n    90611726015878352075151628422554026517048330422614\n    39742869330616908979684825901254583271682264580665\n    26769958652682272807075781391858178889652208164348\n    34482599326604336766017699961283186078838615027946\n    59551311565520360939881806121385586003014356945272\n    24206344631797460594682573103790084024432438465657\n    24501440282188525247093519062092902313649327349756\n    55139587205596542287497740114133469627154228458623\n    77387538230483865688976461927383814900140767310446\n    64025989949022222176590433990188601856652648506179\n    97023561938970178600408118897299183110211712298459\n    01641921068884387121855646124960798722908519296819\n    37238864261483965738229112312502418664935314397013\n    74285319266498753372189406942814341185201580141233\n    44828015051399694290153483077644569099073152433278\n    28826986460278986432113908350621709500259738986355\n    42771967428222487575867657523442202075736305694988\n    25087968928162753848863396909959826280956121450994\n    87170124451646126037902930912088908694202851064018\n    21543994571568059418727489980942547421735824010636\n    77404595741785160829230135358081840096996372524230\n    56085590370062427124341690900415369010593398383577\n    79394109700277534720000000000000000000000000000000\n    00000000000000000000000000000000000000000000000000\n    00000000000000000000000000000000000000000000000000\n    00000000000000000000000000000000000000000000000000\n    00000000000000000000000000000000000000000000000000\n    000000000000000000\n\n    real\t0m0.044s\n    user\t0m0.042s\n    sys\t    0m0.002s\n\n\nWell, you can check if it's right!\n\nTested in VS2015, clang 3.6 and GCC 4.9.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaidodo%2Fhuge-long-number","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaidodo%2Fhuge-long-number","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaidodo%2Fhuge-long-number/lists"}