"1 million factorial"의 두 판 사이의 차이

ph
이동: 둘러보기, 검색
(새 문서: * just using [http://www.manpagez.com/man/1/bc/ bc] <syntaxhighlight lang="c"> define f(x) { if(x<=1) return (1); return (f(x-1)*x); } </syntaxhighlight> real 578m28.905s<br> user ...)
 
잔글
10번째 줄: 10번째 줄:
 
sys    12m33.006s<br>
 
sys    12m33.006s<br>
 
(with poor computing power (centOS virtual machine on windows7. i5 dual(not quad) processor))
 
(with poor computing power (centOS virtual machine on windows7. i5 dual(not quad) processor))
5565709 digits starting <div style='word-wrap: break-word;'>82639316883312400623766461031726662911353479789638730451677758855633796110356450844465305113114639733516068042108785885414647469506478361823012109754232995901156417462491737988838926919341417654578323931987280247219893964365444552161533920583519938798941774206240841593987701818807223169252057737128436859815222389311521255279546829742282164292748493887784712443572285950934362117645254493052265841197629905619012120241419002534128319433065076207004051595915117186613844750900755834037427137686877042093751023502633401248341314910217684549431273636399066971952961345733318557782792616690299056202054369409707066647851950401003675381978549679950259346666425613978573559764142083506&hellip; </div>
+
5565709 digits starting <div style='word-wrap: break-word;'>82639316883312400623766461031726662911353479789638730451677758855633796110356450844465305113114639733516068042108785885414647469506478361823012109754232995901156417462491737988838926919341417654578323931987280247219893964365444552161533920583519938798941774206240841593987701818807223169252057737128436859815222389311521255279546829742282164292748493887784712443572285950934362117645254493052265841197629905619012120241419002534128319433065076207004051595915117186613844750900755834037427137686877042093751023502633401248341314910217684549431273636399066971952961345733318557782792616690299056202054369409707066647851950401003675381978549679950259346666425613978573559764142083506&hellip; </div>ending with 249998 zeros
ending with 249998 zeros
 

2011년 7월 1일 (금) 11:52 판

  • just using bc
define f(x) {
if(x<=1) return (1);
return (f(x-1)*x);
}

real 578m28.905s
user 450m56.192s
sys 12m33.006s
(with poor computing power (centOS virtual machine on windows7. i5 dual(not quad) processor))

5565709 digits starting

82639316883312400623766461031726662911353479789638730451677758855633796110356450844465305113114639733516068042108785885414647469506478361823012109754232995901156417462491737988838926919341417654578323931987280247219893964365444552161533920583519938798941774206240841593987701818807223169252057737128436859815222389311521255279546829742282164292748493887784712443572285950934362117645254493052265841197629905619012120241419002534128319433065076207004051595915117186613844750900755834037427137686877042093751023502633401248341314910217684549431273636399066971952961345733318557782792616690299056202054369409707066647851950401003675381978549679950259346666425613978573559764142083506…

ending with 249998 zeros