PARI9-12-07 - 18.781 In-Class Discussion parisize = 4000000...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
18.781 In-Class Discussion, September 12, 2007 parisize = 4000000, primelimit = 500000 ? Sumprime(n)=c=1/2;for(k=2,n/2,if(isprime(2*k-1),c=c+1/(2*k-1)));c ? Sumprime(5000) %1 = 318667067102254773549424539911501934437713946362796205802459203645584811530 70926010317904576786243178040480824560512884278343962008488806390088376571713058 11639936782939437124216553706544674064616497969742280469836835188128189380324028 85040050286300567306003244685698666402575786752618321957039246307484184853747530 13397100831138010785259805102551349935464906025854358250018521536105237459976806 03621878051427726065738326540317410446110294518640296563517885422959382963028176 82483533320491156530375709716314288925577936082146008014070245009938169070423761 43489614931514809009119236384867216561031997971308620599637802956469055144085523 79575140356230154579295304632181996853778464903677745764822993218039560726456028 81346548321396994764452573032854240804917587390690528386468703974334379069696485 72118571419141939953855661166884691356599816910613793961453248212307474369333869 30542992429774934237381946217519310945876648240645900264726259878692624623091675 66935727090199924748743511658117373107118276441932567075655036682618382937938949 00888949355663321122061046170098336164348191052788690872504086014841730758565752 73485430153950846961153196201312897019719465326704883599398049372557058433925265 18471169162701471891200142547779178080603221821785931497502674282221360139764934 30753409723794374949726602470247094081455265925036034899925232572960994748300693 52241016272427661358552024126344361615067987345982110813348344383694399703987526 80070214776302924985181035218406952380992583785996000087346339261672214706380628 11835871544987928159053473305200268882069035869086612577229901912967631127091884 23732392661792010857016379212278338592700410638454203509784899751434344994128470 05048825622762782032053613924278255483651755178482711351750519576451993019708617
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern