<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>To Hell in a Handbasket &#187; Math</title>
	<atom:link href="http://ericsilva.org/category/math/feed/" rel="self" type="application/rss+xml" />
	<link>http://ericsilva.org</link>
	<description>General Views, Opinions, and Observations in the World Around Me</description>
	<lastBuildDate>Tue, 22 May 2012 07:44:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Happy Pi Day</title>
		<link>http://ericsilva.org/2012/03/14/happy-pi-day-2/</link>
		<comments>http://ericsilva.org/2012/03/14/happy-pi-day-2/#comments</comments>
		<pubDate>Wed, 14 Mar 2012 19:09:43 +0000</pubDate>
		<dc:creator>Eric Silva</dc:creator>
				<category><![CDATA[Math]]></category>
		<category><![CDATA[Observations]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[pi]]></category>

		<guid isPermaLink="false">http://ericsilva.org/?p=619</guid>
		<description><![CDATA[&#960; = 3. 14159265358979323846264338327950288419716939937510 58209749445923078164062862089986280348253421170679 82148086513282306647093844609550582231725359408128 48111745028410270193852110555964462294895493038196 44288109756659334461284756482337867831652712019091 45648566923460348610454326648213393607260249141273 72458700660631558817488152092096282925409171536436 78925903600113305305488204665213841469519415116094 33057270365759591953092186117381932611793105118548 07446237996274956735188575272489122793818301194912 98336733624406566430860213949463952247371907021798 60943702770539217176293176752384674818467669405132 00056812714526356082778577134275778960917363717872 14684409012249534301465495853710507922796892589235 42019956112129021960864034418159813629774771309960 51870721134999999837297804995105973173281609631859 50244594553469083026425223082533446850352619311881 71010003137838752886587533208381420617177669147303 59825349042875546873115956286388235378759375195778 18577805321712268066130019278766111959092164201989 38095257201065485863278865936153381827968230301952 03530185296899577362259941389124972177528347913151 55748572424541506959508295331168617278558890750983 81754637464939319255060400927701671139009848824012 85836160356370766010471018194295559619894676783744 94482553797747268471040475346462080466842590694912 93313677028989152104752162056966024058038150193511 25338243003558764024749647326391419927260426992279 67823547816360093417216412199245863150302861829745 55706749838505494588586926995690927210797509302955 32116534498720275596023648066549911988183479775356 63698074265425278625518184175746728909777727938000 81647060016145249192173217214772350141441973568548 16136115735255213347574184946843852332390739414333 45477624168625189835694855620992192221842725502542 56887671790494601653466804988627232791786085784383 82796797668145410095388378636095068006422512520511 73929848960841284886269456042419652850222106611863 06744278622039194945047123713786960956364371917287 46776465757396241389086583264599581339047802759009 94657640789512694683983525957098258226205224894077 26719478268482601476990902640136394437455305068203 49625245174939965143142980919065925093722169646151 57098583874105978859597729754989301617539284681382 68683868942774155991855925245953959431049972524680 84598727364469584865383673622262609912460805124388 43904512441365497627807977156914359977001296160894 41694868555848406353422072225828488648158456028506 01684273945226746767889525213852254995466672782398 64565961163548862305774564980355936345681743241125 15076069479451096596094025228879710893145669136867 22874894056010150330861792868092087476091782493858 &#8230; </p><p><a class="more-link block-button" href="http://ericsilva.org/2012/03/14/happy-pi-day-2/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p><font size="3" face="Times New Roman"><strong>&pi;</strong></font> = 3.
<p>14159265358979323846264338327950288419716939937510    <br />58209749445923078164062862089986280348253421170679     <br />82148086513282306647093844609550582231725359408128     <br />48111745028410270193852110555964462294895493038196     <br />44288109756659334461284756482337867831652712019091     <br />45648566923460348610454326648213393607260249141273     <br />72458700660631558817488152092096282925409171536436     <br />78925903600113305305488204665213841469519415116094     <br />33057270365759591953092186117381932611793105118548     <br />07446237996274956735188575272489122793818301194912     <br />98336733624406566430860213949463952247371907021798     <br />60943702770539217176293176752384674818467669405132     <br />00056812714526356082778577134275778960917363717872     <br />14684409012249534301465495853710507922796892589235     <br />42019956112129021960864034418159813629774771309960     <br />51870721134999999837297804995105973173281609631859     <br />50244594553469083026425223082533446850352619311881     <br />71010003137838752886587533208381420617177669147303     <br />59825349042875546873115956286388235378759375195778     <br />18577805321712268066130019278766111959092164201989     <br />38095257201065485863278865936153381827968230301952     <br />03530185296899577362259941389124972177528347913151     <br />55748572424541506959508295331168617278558890750983     <br />81754637464939319255060400927701671139009848824012     <br />85836160356370766010471018194295559619894676783744     <br />94482553797747268471040475346462080466842590694912     <br />93313677028989152104752162056966024058038150193511     <br />25338243003558764024749647326391419927260426992279     <br />67823547816360093417216412199245863150302861829745     <br />55706749838505494588586926995690927210797509302955     <br />32116534498720275596023648066549911988183479775356     <br />63698074265425278625518184175746728909777727938000     <br />81647060016145249192173217214772350141441973568548     <br />16136115735255213347574184946843852332390739414333     <br />45477624168625189835694855620992192221842725502542     <br />56887671790494601653466804988627232791786085784383     <br />82796797668145410095388378636095068006422512520511     <br />73929848960841284886269456042419652850222106611863     <br />06744278622039194945047123713786960956364371917287     <br />46776465757396241389086583264599581339047802759009     <br />94657640789512694683983525957098258226205224894077     <br />26719478268482601476990902640136394437455305068203     <br />49625245174939965143142980919065925093722169646151     <br />57098583874105978859597729754989301617539284681382     <br />68683868942774155991855925245953959431049972524680     <br />84598727364469584865383673622262609912460805124388     <br />43904512441365497627807977156914359977001296160894     <br />41694868555848406353422072225828488648158456028506     <br />01684273945226746767889525213852254995466672782398     <br />64565961163548862305774564980355936345681743241125     <br />15076069479451096596094025228879710893145669136867     <br />22874894056010150330861792868092087476091782493858     <br />90097149096759852613655497818931297848216829989487     <br />22658804857564014270477555132379641451523746234364     <br />54285844479526586782105114135473573952311342716610     <br />21359695362314429524849371871101457654035902799344     <br />03742007310578539062198387447808478489683321445713     <br />86875194350643021845319104848100537061468067491927     <br />81911979399520614196634287544406437451237181921799     <br />98391015919561814675142691239748940907186494231961     <br />56794520809514655022523160388193014209376213785595     <br />66389377870830390697920773467221825625996615014215     <br />03068038447734549202605414665925201497442850732518     <br />66600213243408819071048633173464965145390579626856     <br />10055081066587969981635747363840525714591028970641     <br />40110971206280439039759515677157700420337869936007     <br />23055876317635942187312514712053292819182618612586     <br />73215791984148488291644706095752706957220917567116     <br />72291098169091528017350671274858322287183520935396     <br />57251210835791513698820914442100675103346711031412     <br />67111369908658516398315019701651511685171437657618     <br />35155650884909989859982387345528331635507647918535     <br />89322618548963213293308985706420467525907091548141     <br />65498594616371802709819943099244889575712828905923     <br />23326097299712084433573265489382391193259746366730     <br />58360414281388303203824903758985243744170291327656     <br />18093773444030707469211201913020330380197621101100     <br />44929321516084244485963766983895228684783123552658     <br />21314495768572624334418930396864262434107732269780     <br />28073189154411010446823252716201052652272111660396     <br />66557309254711055785376346682065310989652691862056     <br />47693125705863566201855810072936065987648611791045     <br />33488503461136576867532494416680396265797877185560     <br />84552965412665408530614344431858676975145661406800     <br />70023787765913440171274947042056223053899456131407     <br />11270004078547332699390814546646458807972708266830     <br />63432858785698305235808933065757406795457163775254     <br />20211495576158140025012622859413021647155097925923     <br />09907965473761255176567513575178296664547791745011     <br />29961489030463994713296210734043751895735961458901     <br />93897131117904297828564750320319869151402870808599     <br />04801094121472213179476477726224142548545403321571     <br />85306142288137585043063321751829798662237172159160     <br />77166925474873898665494945011465406284336639379003     <br />97692656721463853067360965712091807638327166416274     <br />88880078692560290228472104031721186082041900042296     <br />61711963779213375751149595015660496318629472654736     <br />42523081770367515906735023507283540567040386743513     <br />62222477158915049530984448933309634087807693259939     <br />78054193414473774418426312986080998886874132604721     <br />56951623965864573021631598193195167353812974167729     <br />47867242292465436680098067692823828068996400482435     <br />40370141631496589794092432378969070697794223625082     <br />21688957383798623001593776471651228935786015881617     <br />55782973523344604281512627203734314653197777416031     <br />99066554187639792933441952154134189948544473456738     <br />31624993419131814809277771038638773431772075456545     <br />32207770921201905166096280490926360197598828161332     <br />31666365286193266863360627356763035447762803504507     <br />77235547105859548702790814356240145171806246436267     <br />94561275318134078330336254232783944975382437205835     <br />31147711992606381334677687969597030983391307710987     <br />04085913374641442822772634659470474587847787201927     <br />71528073176790770715721344473060570073349243693113     <br />83504931631284042512192565179806941135280131470130     <br />47816437885185290928545201165839341965621349143415     <br />95625865865570552690496520985803385072242648293972     <br />85847831630577775606888764462482468579260395352773     <br />48030480290058760758251047470916439613626760449256     <br />27420420832085661190625454337213153595845068772460     <br />29016187667952406163425225771954291629919306455377     <br />99140373404328752628889639958794757291746426357455     <br />25407909145135711136941091193932519107602082520261     <br />87985318877058429725916778131496990090192116971737     <br />27847684726860849003377024242916513005005168323364     <br />35038951702989392233451722013812806965011784408745     <br />19601212285993716231301711444846409038906449544400     <br />61986907548516026327505298349187407866808818338510     <br />22833450850486082503930213321971551843063545500766     <br />82829493041377655279397517546139539846833936383047     <br />46119966538581538420568533862186725233402830871123     <br />28278921250771262946322956398989893582116745627010     <br />21835646220134967151881909730381198004973407239610     <br />36854066431939509790190699639552453005450580685501     <br />95673022921913933918568034490398205955100226353536     <br />19204199474553859381023439554495977837790237421617     <br />27111723643435439478221818528624085140066604433258     <br />88569867054315470696574745855033232334210730154594     <br />05165537906866273337995851156257843229882737231989     <br />87571415957811196358330059408730681216028764962867     <br />44604774649159950549737425626901049037781986835938     <br />14657412680492564879855614537234786733039046883834     <br />36346553794986419270563872931748723320837601123029     <br />91136793862708943879936201629515413371424892830722     <br />01269014754668476535761647737946752004907571555278     <br />19653621323926406160136358155907422020203187277605     <br />27721900556148425551879253034351398442532234157623     <br />36106425063904975008656271095359194658975141310348     <br />22769306247435363256916078154781811528436679570611     <br />08615331504452127473924544945423682886061340841486     <br />37767009612071512491404302725386076482363414334623     <br />51897576645216413767969031495019108575984423919862     <br />91642193994907236234646844117394032659184044378051     <br />33389452574239950829659122850855582157250310712570     <br />12668302402929525220118726767562204154205161841634     <br />84756516999811614101002996078386909291603028840026     <br />91041407928862150784245167090870006992821206604183     <br />71806535567252532567532861291042487761825829765157     <br />95984703562226293486003415872298053498965022629174     <br />87882027342092222453398562647669149055628425039127     <br />57710284027998066365825488926488025456610172967026     <br />64076559042909945681506526530537182941270336931378     <br />51786090407086671149655834343476933857817113864558     <br />73678123014587687126603489139095620099393610310291     <br />61615288138437909904231747336394804575931493140529     <br />76347574811935670911013775172100803155902485309066     <br />92037671922033229094334676851422144773793937517034     <br />43661991040337511173547191855046449026365512816228     <br />82446257591633303910722538374218214088350865739177     <br />15096828874782656995995744906617583441375223970968     <br />34080053559849175417381883999446974867626551658276     <br />58483588453142775687900290951702835297163445621296     <br />40435231176006651012412006597558512761785838292041     <br />97484423608007193045761893234922927965019875187212     <br />72675079812554709589045563579212210333466974992356     <br />30254947802490114195212382815309114079073860251522     <br />74299581807247162591668545133312394804947079119153     <br />26734302824418604142636395480004480026704962482017     <br />92896476697583183271314251702969234889627668440323     <br />26092752496035799646925650493681836090032380929345     <br />95889706953653494060340216654437558900456328822505     <br />45255640564482465151875471196218443965825337543885     <br />69094113031509526179378002974120766514793942590298     <br />96959469955657612186561967337862362561252163208628     <br />69222103274889218654364802296780705765615144632046     <br />92790682120738837781423356282360896320806822246801     <br />22482611771858963814091839036736722208883215137556     <br />00372798394004152970028783076670944474560134556417     <br />25437090697939612257142989467154357846878861444581     <br />23145935719849225284716050492212424701412147805734     <br />55105008019086996033027634787081081754501193071412     <br />23390866393833952942578690507643100638351983438934     <br />15961318543475464955697810382930971646514384070070     <br />73604112373599843452251610507027056235266012764848     <br />30840761183013052793205427462865403603674532865105     <br />70658748822569815793678976697422057505968344086973     <br />50201410206723585020072452256326513410559240190274     <br />21624843914035998953539459094407046912091409387001     <br />26456001623742880210927645793106579229552498872758     <br />46101264836999892256959688159205600101655256375678     <br />56672279661988578279484885583439751874454551296563     <br />44348039664205579829368043522027709842942325330225     <br />76341807039476994159791594530069752148293366555661     <br />56787364005366656416547321704390352132954352916941     <br />45990416087532018683793702348886894791510716378529     <br />02345292440773659495630510074210871426134974595615     <br />13849871375704710178795731042296906667021449863746     <br />45952808243694457897723300487647652413390759204340     <br />19634039114732023380715095222010682563427471646024     <br />33544005152126693249341967397704159568375355516673     <br />02739007497297363549645332888698440611964961627734     <br />49518273695588220757355176651589855190986665393549     <br />48106887320685990754079234240230092590070173196036     <br />22547564789406475483466477604114632339056513433068     <br />44953979070903023460461470961696886885014083470405     <br />46074295869913829668246818571031887906528703665083     <br />24319744047718556789348230894310682870272280973624     <br />80939962706074726455399253994428081137369433887294     <br />06307926159599546262462970706259484556903471197299     <br />64090894180595343932512362355081349490043642785271     <br />38315912568989295196427287573946914272534366941532     <br />36100453730488198551706594121735246258954873016760     <br />02988659257866285612496655235338294287854253404830     <br />83307016537228563559152534784459818313411290019992     <br />05981352205117336585640782648494276441137639386692     <br />48031183644536985891754426473998822846218449008777     <br />69776312795722672655562596282542765318300134070922     <br />33436577916012809317940171859859993384923549564005     <br />70995585611349802524990669842330173503580440811685     <br />52653117099570899427328709258487894436460050410892     <br />26691783525870785951298344172953519537885534573742     <br />60859029081765155780390594640873506123226112009373     <br />10804854852635722825768203416050484662775045003126     <br />20080079980492548534694146977516493270950493463938     <br />24322271885159740547021482897111777923761225788734     <br />77188196825462981268685817050740272550263329044976     <br />27789442362167411918626943965067151577958675648239     <br />93917604260176338704549901761436412046921823707648     <br />87834196896861181558158736062938603810171215855272     <br />66830082383404656475880405138080163363887421637140     <br />64354955618689641122821407533026551004241048967835     <br />28588290243670904887118190909494533144218287661810     <br />31007354770549815968077200947469613436092861484941     <br />78501718077930681085469000944589952794243981392135     <br />05586422196483491512639012803832001097738680662877     <br />92397180146134324457264009737425700735921003154150     <br />89367930081699805365202760072774967458400283624053     <br />46037263416554259027601834840306811381855105979705     <br />66400750942608788573579603732451414678670368809880     <br />60971642584975951380693094494015154222219432913021     <br />73912538355915031003330325111749156969174502714943     <br />31515588540392216409722910112903552181576282328318     <br />23425483261119128009282525619020526301639114772473     <br />31485739107775874425387611746578671169414776421441     <br />11126358355387136101102326798775641024682403226483     <br />46417663698066378576813492045302240819727856471983     <br />96308781543221166912246415911776732253264335686146     <br />18654522268126887268445968442416107854016768142080     <br />88502800541436131462308210259417375623899420757136     <br />27516745731891894562835257044133543758575342698699     <br />47254703165661399199968262824727064133622217892390     <br />31760854289437339356188916512504244040089527198378     <br />73864805847268954624388234375178852014395600571048     <br />11949884239060613695734231559079670346149143447886     <br />36041031823507365027785908975782727313050488939890     <br />09923913503373250855982655867089242612429473670193     <br />90772713070686917092646254842324074855036608013604     <br />66895118400936686095463250021458529309500009071510     <br />58236267293264537382104938724996699339424685516483     <br />26113414611068026744663733437534076429402668297386     <br />52209357016263846485285149036293201991996882851718     <br />39536691345222444708045923966028171565515656661113     <br />59823112250628905854914509715755390024393153519090     <br />21071194573002438801766150352708626025378817975194     <br />78061013715004489917210022201335013106016391541589     <br />57803711779277522597874289191791552241718958536168     <br />05947412341933984202187456492564434623925319531351     <br />03311476394911995072858430658361935369329699289837     <br />91494193940608572486396883690326556436421664425760     <br />79147108699843157337496488352927693282207629472823     <br />81537409961545598798259891093717126218283025848112     <br />38901196822142945766758071865380650648702613389282     <br />29949725745303328389638184394477077940228435988341     <br />00358385423897354243956475556840952248445541392394     <br />10001620769363684677641301781965937997155746854194     <br />63348937484391297423914336593604100352343777065888     <br />67781139498616478747140793263858738624732889645643     <br />59877466763847946650407411182565837887845485814896     <br />29612739984134427260860618724554523606431537101127     <br />46809778704464094758280348769758948328241239292960     <br />58294861919667091895808983320121031843034012849511     <br />62035342801441276172858302435598300320420245120728     <br />72535581195840149180969253395075778400067465526031     <br />44616705082768277222353419110263416315714740612385     <br />04258459884199076112872580591139356896014316682831     <br />76323567325417073420817332230462987992804908514094     <br />79036887868789493054695570307261900950207643349335     <br />91060245450864536289354568629585313153371838682656     <br />17862273637169757741830239860065914816164049449650     <br />11732131389574706208847480236537103115089842799275     <br />44268532779743113951435741722197597993596852522857     <br />45263796289612691572357986620573408375766873884266     <br />40599099350500081337543245463596750484423528487470     <br />14435454195762584735642161981340734685411176688311     <br />86544893776979566517279662326714810338643913751865     <br />94673002443450054499539974237232871249483470604406     <br />34716063258306498297955101095418362350303094530973     <br />35834462839476304775645015008507578949548931393944     <br />89921612552559770143685894358587752637962559708167     <br />76438001254365023714127834679261019955852247172201     <br />77723700417808419423948725406801556035998390548985     <br />72354674564239058585021671903139526294455439131663     <br />13453089390620467843877850542393905247313620129476     <br />91874975191011472315289326772533918146607300089027     <br />76896311481090220972452075916729700785058071718638     <br />10549679731001678708506942070922329080703832634534     <br />52038027860990556900134137182368370991949516489600     <br />75504934126787643674638490206396401976668559233565     <br />46391383631857456981471962108410809618846054560390     <br />38455343729141446513474940784884423772175154334260     <br />30669883176833100113310869042193903108014378433415     <br />13709243530136776310849135161564226984750743032971     <br />67469640666531527035325467112667522460551199581831     <br />96376370761799191920357958200759560530234626775794     <br />39363074630569010801149427141009391369138107258137     <br />81357894005599500183542511841721360557275221035268     <br />03735726527922417373605751127887218190844900617801     <br />38897107708229310027976659358387589093956881485602     <br />63224393726562472776037890814458837855019702843779     <br />36240782505270487581647032458129087839523245323789     <br />60298416692254896497156069811921865849267704039564     <br />81278102179913217416305810554598801300484562997651     <br />12124153637451500563507012781592671424134210330156     <br />61653560247338078430286552572227530499988370153487     <br />93008062601809623815161366903341111386538510919367     <br />39383522934588832255088706450753947395204396807906     <br />70868064450969865488016828743437861264538158342807     <br />53061845485903798217994599681154419742536344399602     <br />90251001588827216474500682070419376158454712318346     <br />00726293395505482395571372568402322682130124767945     <br />22644820910235647752723082081063518899152692889108     <br />45557112660396503439789627825001611015323516051965     <br />59042118449499077899920073294769058685778787209829     <br />01352956613978884860509786085957017731298155314951     <br />68146717695976099421003618355913877781769845875810     <br />44662839988060061622984861693533738657877359833616     <br />13384133853684211978938900185295691967804554482858     <br />48370117096721253533875862158231013310387766827211     <br />57269495181795897546939926421979155233857662316762     <br />75475703546994148929041301863861194391962838870543     <br />67774322427680913236544948536676800000106526248547     <br />30558615989991401707698385483188750142938908995068     <br />54530765116803337322265175662207526951791442252808     <br />16517166776672793035485154204023817460892328391703     <br />27542575086765511785939500279338959205766827896776     <br />44531840404185540104351348389531201326378369283580     <br />82719378312654961745997056745071833206503455664403     <br />44904536275600112501843356073612227659492783937064     <br />78426456763388188075656121689605041611390390639601     <br />62022153684941092605387688714837989559999112099164     <br />64644119185682770045742434340216722764455893301277     <br />81586869525069499364610175685060167145354315814801     <br />05458860564550133203758645485840324029871709348091     <br />05562116715468484778039447569798042631809917564228     <br />09873998766973237695737015808068229045992123661689     <br />02596273043067931653114940176473769387351409336183     <br />32161428021497633991898354848756252987524238730775     <br />59555955465196394401821840998412489826236737714672     <br />26061633643296406335728107078875816404381485018841     <br />14318859882769449011932129682715888413386943468285     <br />90066640806314077757725705630729400492940302420498     <br />41656547973670548558044586572022763784046682337985     <br />28271057843197535417950113472736257740802134768260     <br />45022851579795797647467022840999561601569108903845     <br />82450267926594205550395879229818526480070683765041     <br />83656209455543461351341525700659748819163413595567     <br />19649654032187271602648593049039787489589066127250     <br />79482827693895352175362185079629778514618843271922     <br />32238101587444505286652380225328438913752738458923     <br />84422535472653098171578447834215822327020690287232     <br />33005386216347988509469547200479523112015043293226     <br />62827276321779088400878614802214753765781058197022     <br />26309717495072127248479478169572961423658595782090     <br />83073323356034846531873029302665964501371837542889     <br />75579714499246540386817992138934692447419850973346     <br />26793321072686870768062639919361965044099542167627     <br />84091466985692571507431574079380532392523947755744     <br />15918458215625181921552337096074833292349210345146     <br />26437449805596103307994145347784574699992128599999     <br />39961228161521931488876938802228108300198601654941     <br />65426169685867883726095877456761825072759929508931     <br />80521872924610867639958916145855058397274209809097     <br />81729323930106766386824040111304024700735085782872     <br />46271349463685318154696904669686939254725194139929     <br />14652423857762550047485295476814795467007050347999     <br />58886769501612497228204030399546327883069597624936     <br />15101024365553522306906129493885990157346610237122     <br />35478911292547696176005047974928060721268039226911     <br />02777226102544149221576504508120677173571202718024     <br />29681062037765788371669091094180744878140490755178     <br />20385653909910477594141321543284406250301802757169     <br />65082096427348414695726397884256008453121406593580     <br />90412711359200419759851362547961606322887361813673     <br />73244506079244117639975974619383584574915988097667     <br />44709300654634242346063423747466608043170126005205     <br />59284936959414340814685298150539471789004518357551     <br />54125223590590687264878635752541911288877371766374     <br />86027660634960353679470269232297186832771739323619     <br />20077745221262475186983349515101986426988784717193     <br />96649769070825217423365662725928440620430214113719     <br />92278526998469884770232382384005565551788908766136     <br />01304770984386116870523105531491625172837327286760     <br />07248172987637569816335415074608838663640693470437     <br />20668865127568826614973078865701568501691864748854     <br />16791545965072342877306998537139043002665307839877     <br />63850323818215535597323530686043010675760838908627     <br />04984188859513809103042359578249514398859011318583     <br />58406674723702971497850841458530857813391562707603     <br />56390763947311455495832266945702494139831634332378     <br />97595568085683629725386791327505554252449194358912     <br />84050452269538121791319145135009938463117740179715     <br />12283785460116035955402864405902496466930707769055     <br />48102885020808580087811577381719174177601733073855     <br />47580060560143377432990127286772530431825197579167     <br />92969965041460706645712588834697979642931622965520     <br />16879730003564630457930884032748077181155533090988     <br />70255052076804630346086581653948769519600440848206     <br />59673794731680864156456505300498816164905788311543     <br />45485052660069823093157776500378070466126470602145     <br />75057932709620478256152471459189652236083966456241     <br />05195510522357239739512881816405978591427914816542     <br />63289200428160913693777372229998332708208296995573     <br />77273756676155271139225880552018988762011416800546     <br />87365580633471603734291703907986396522961312801782     <br />67971728982293607028806908776866059325274637840539     <br />76918480820410219447197138692560841624511239806201     <br />13184541244782050110798760717155683154078865439041     <br />21087303240201068534194723047666672174986986854707     <br />67812051247367924791931508564447753798537997322344     <br />56122785843296846647513336573692387201464723679427     <br />87004250325558992688434959287612400755875694641370     <br />56251400117971331662071537154360068764773186755871     <br />48783989081074295309410605969443158477539700943988     <br />39491443235366853920994687964506653398573888786614     <br />76294434140104988899316005120767810358861166020296     <br />11936396821349607501116498327856353161451684576956     <br />87109002999769841263266502347716728657378579085746     <br />64607722834154031144152941880478254387617707904300     <br />01566986776795760909966936075594965152736349811896     <br />41304331166277471233881740603731743970540670310967     <br />67657486953587896700319258662594105105335843846560     <br />23391796749267844763708474978333655579007384191473     <br />19886271352595462518160434225372996286326749682405     <br />80602964211463864368642247248872834341704415734824     <br />81833301640566959668866769563491416328426414974533     <br />34999948000266998758881593507357815195889900539512     <br />08535103572613736403436753471410483601754648830040     <br />78464167452167371904831096767113443494819262681110     <br />73994825060739495073503169019731852119552635632584     <br />33909982249862406703107683184466072912487475403161     <br />79699411397387765899868554170318847788675929026070     <br />04321266617919223520938227878880988633599116081923     <br />53555704646349113208591897961327913197564909760001     <br />39962344455350143464268604644958624769094347048293     <br />29414041114654092398834443515913320107739441118407     <br />41076849810663472410482393582740194493566516108846     <br />31256785297769734684303061462418035852933159734583     <br />03845541033701091676776374276210213701354854450926     <br />30719011473184857492331816720721372793556795284439     <br />25481560913728128406333039373562420016045664557414     <br />58816605216660873874804724339121295587776390696903     <br />70788285277538940524607584962315743691711317613478     <br />38827194168606625721036851321566478001476752310393     <br />57860689611125996028183930954870905907386135191459     <br />18195102973278755710497290114871718971800469616977     <br />70017913919613791417162707018958469214343696762927     <br />45910994006008498356842520191559370370101104974733     <br />94938778859894174330317853487076032219829705797511     <br />91440510994235883034546353492349826883624043327267     <br />41554030161950568065418093940998202060999414021689     <br />09007082133072308966211977553066591881411915778362     <br />72927461561857103721724710095214236964830864102592     <br />88745799932237495519122195190342445230753513380685     <br />68073544649951272031744871954039761073080602699062     <br />58076020292731455252078079914184290638844373499681     <br />45827337207266391767020118300464819000241308350884     <br />65841521489912761065137415394356572113903285749187     <br />69094413702090517031487773461652879848235338297260     <br />13611098451484182380812054099612527458088109948697     <br />22161285248974255555160763716750548961730168096138     <br />03811914361143992106380050832140987604599309324851     <br />02516829446726066613815174571255975495358023998314     <br />69822036133808284993567055755247129027453977621404     <br />93182014658008021566536067765508783804304134310591     <br />80460680083459113664083488740800574127258670479225     <br />83191274157390809143831384564241509408491339180968     <br />40251163991936853225557338966953749026620923261318     <br />85589158083245557194845387562878612885900410600607     <br />37465014026278240273469625282171749415823317492396     <br />83530136178653673760642166778137739951006589528877…</p>
]]></content:encoded>
			<wfw:commentRss>http://ericsilva.org/2012/03/14/happy-pi-day-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Primality Test v2.0</title>
		<link>http://ericsilva.org/2009/12/14/primality-test-v2-0/</link>
		<comments>http://ericsilva.org/2009/12/14/primality-test-v2-0/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 18:02:44 +0000</pubDate>
		<dc:creator>Eric Silva</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[prime numbers]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://ericsilva.org/?p=359</guid>
		<description><![CDATA[After feedback from some friends of mine, and doing a little bit of background research, I am writing this update to my original post last week.  As it turns out, by checking all the numbers in the form 6k ± 1  instead of checking each number up to the input value, I have increased the speed &#8230; </p><p><a class="more-link block-button" href="http://ericsilva.org/2009/12/14/primality-test-v2-0/">Continue reading &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>After feedback from some friends of mine, and doing a little bit of <a href="http://en.wikipedia.org/wiki/Primality_test" target="_blank">background research</a>, I am writing this update to my <a href="http://ericsilva.org/2009/12/10/determining-if-a-number-is-prime/" target="_self">original post last week</a>.  As it turns out, by checking all the numbers in the form 6<em>k</em> ± 1 <img style="vertical-align: middle; margin: 0px; border: none;" src="http://upload.wikimedia.org/math/2/8/e/28edd0f7feeaea1aac75a80e84bc048c.png" alt="\scriptstyle{}\leq\sqrt n" /> instead of checking each number up to the input value, I have increased the speed by 7 times! determineIsPrime3 (line 48 below) is the fastest algorithm so far.  determineIsPrime2, a simple comparision against the <img style="vertical-align: middle; margin: 0px; border: none;" src="http://upload.wikimedia.org/math/f/8/d/f8d9ab3dcb0f9aee56999cd1fc1f7b21.png" alt="\scriptstyle\sqrt n" />, was twice as fast as the original algorithm.</p>
<p>For now, I am putting this one to bed.  It was a fun exercise, but I have got what I need from it.</p>
<p>
<pre class="brush: python; gutter: true; title: ; toolbar: true; notranslate">&lt;br /&gt;
'''&lt;br /&gt;
Checks the specified value to determine if it is a prime number.&lt;br /&gt;
If it is not prime the divisor will be returned instead.&lt;/p&gt;
&lt;p&gt;@author: Eric Silva&lt;br /&gt;
'''&lt;/p&gt;
&lt;p&gt;import math, time&lt;/p&gt;
&lt;p&gt;#Change this value to whatever value you want to test for prime.&lt;br /&gt;
#testValue = 65027&lt;br /&gt;
#testValue = 155188329701&lt;br /&gt;
testValue = 99194853094755497&lt;br /&gt;
#testValue = 10888869450418352160768000001&lt;br /&gt;
print 'Testing %d...' % testValue&lt;/p&gt;
&lt;p&gt;def determineIsPrime(testPrime):&lt;br /&gt;
    if testPrime % 2 == 0:&lt;br /&gt;
        return 'Divisible by 2'&lt;br /&gt;
    if testPrime % 3 == 0:&lt;br /&gt;
        return 'Divisible by 3'&lt;br /&gt;
    testNum = 7&lt;br /&gt;
    testLimit = testPrime&lt;br /&gt;
    while testLimit &gt;= testNum:&lt;br /&gt;
        if testPrime % testNum == 0:&lt;br /&gt;
           return 'Divisible by %d' % testNum&lt;br /&gt;
        testLimit = testPrime/testNum&lt;/p&gt;
&lt;p&gt;        testNum = testNum + 2&lt;/p&gt;
&lt;p&gt;    return '%d is prime!' % testPrime&lt;/p&gt;
&lt;p&gt;def determineIsPrime2(testPrime):&lt;br /&gt;
    if testPrime % 2 == 0:&lt;br /&gt;
        return 'Divisible by 2'&lt;br /&gt;
    if testPrime % 3 == 0:&lt;br /&gt;
        return 'Divisible by 3'&lt;br /&gt;
    testNum = 5&lt;br /&gt;
    sqrt = math.sqrt(testPrime)&lt;br /&gt;
    while testNum &lt;= sqrt:&lt;br /&gt;
        if testPrime % testNum == 0:&lt;br /&gt;
           return 'Divisible by %d' % testNum&lt;/p&gt;
&lt;p&gt;        testNum = testNum + 2&lt;/p&gt;
&lt;p&gt;    return '%d is prime!' % testPrime&lt;/p&gt;
&lt;p&gt;def determineIsPrime3(testPrime):&lt;br /&gt;
    if testPrime % 2 == 0:&lt;br /&gt;
        return 'Divisible by 2'&lt;br /&gt;
    if testPrime % 3 == 0:&lt;br /&gt;
        return 'Divisible by 3'&lt;br /&gt;
    testNum = 7&lt;br /&gt;
    sqrt = math.sqrt(testPrime)&lt;br /&gt;
    while ((6 * testNum) + 1 &lt;= sqrt) or ((6 * testNum) - 1 &lt;= sqrt):&lt;br /&gt;
        if testPrime % testNum == 0:&lt;br /&gt;
           return 'Divisible by %d' % testNum&lt;/p&gt;
&lt;p&gt;        testNum = testNum + 2&lt;/p&gt;
&lt;p&gt;    return '%d is prime!' % testPrime&lt;/p&gt;
&lt;p&gt;startTime = time.time()&lt;br /&gt;
result = determineIsPrime(testValue)&lt;br /&gt;
endTime = time.time()&lt;/p&gt;
&lt;p&gt;print result&lt;br /&gt;
print '1. Calculation took %f s\n' % (endTime - startTime)&lt;/p&gt;
&lt;p&gt;startTime = time.time()&lt;br /&gt;
result = determineIsPrime2(testValue)&lt;br /&gt;
endTime = time.time()&lt;/p&gt;
&lt;p&gt;print result&lt;br /&gt;
print '2. Calculation took %f s\n' % (endTime - startTime)&lt;/p&gt;
&lt;p&gt;startTime = time.time()&lt;br /&gt;
result = determineIsPrime3(testValue)&lt;br /&gt;
endTime = time.time()&lt;/p&gt;
&lt;p&gt;print result&lt;br /&gt;
print '3. Calculation took %f s\n' % (endTime - startTime)&lt;/p&gt;
&lt;p&gt;</pre>
</p>
<p><strong>Results:</strong></p>
<p>
<pre class="brush: plain; title: ; notranslate">&lt;br /&gt;
Testing 99194853094755497...&lt;br /&gt;
99194853094755497 is prime!&lt;br /&gt;
1. Calculation took 202.609000 s&lt;/p&gt;
&lt;p&gt;99194853094755497 is prime!&lt;br /&gt;
2. Calculation took 114.813000 s&lt;/p&gt;
&lt;p&gt;99194853094755497 is prime!&lt;br /&gt;
3. Calculation took 28.781000 s&lt;br /&gt;
</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://ericsilva.org/2009/12/14/primality-test-v2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Determining if a Number is Prime</title>
		<link>http://ericsilva.org/2009/12/10/determining-if-a-number-is-prime/</link>
		<comments>http://ericsilva.org/2009/12/10/determining-if-a-number-is-prime/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 12:09:55 +0000</pubDate>
		<dc:creator>Eric Silva</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Math]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[prime numbers]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://ericsilva.org/?p=353</guid>
		<description><![CDATA[While working on some caching settings, I had a need to know if a number is prime. I wrote this little Python script which will tell you if the number defined in the script is indeed a prime.]]></description>
			<content:encoded><![CDATA[<p>While working on some caching settings, I had a need to know if a number is prime.  I wrote this little Python script which will tell you if the number defined in the script is indeed a prime.</p>
<pre class="brush: python; gutter: true; title: ; toolbar: true; notranslate">
'''
Checks the specified value to determine if it is a prime number.
If it is not prime the divisor will be returned instead.

@author: Eric Silva
'''

#Change this value to whatever value you want to test for prime.
testValue = 3011

def determineIsPrime(testPrime):
    if testPrime % 2 == 0:
        return 'Divisible by 2'
    testNum = 3
    testLimit = testPrime
    while testLimit &gt;= testNum:
        if testPrime % testNum == 0:
           return 'Divisible by %d' % testNum
        testLimit = testPrime/testNum

        testNum = testNum + 2

    return '%d is prime!' % testPrime

result = determineIsPrime(testValue)

print result
</pre>
]]></content:encoded>
			<wfw:commentRss>http://ericsilva.org/2009/12/10/determining-if-a-number-is-prime/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

