Write a program that computes the sum of the logarithms of all the primes from 2 to some number n, and print out the sum of the logs of the primes, the number n, and the ratio of these two quantities. Test this for different values of n.
Saturday, December 26, 2009
Coding part 3
Write a program that computes the sum of the logarithms of all the primes from 2 to some number n, and print out the sum of the logs of the primes, the number n, and the ratio of these two quantities. Test this for different values of n.
Friday, December 25, 2009
Primes part deux
MIT OCW
Thursday, December 24, 2009
Spelling Enemy

Friday, November 13, 2009
I have moved!
Saturday, October 17, 2009
It's that time of the year again...
Wednesday, September 23, 2009
I will be on this...
Monday, September 21, 2009
Saturday, September 19, 2009
Day 3.25
Wednesday, September 16, 2009
Day 1.5
Monday, September 14, 2009
Day 0
I like it.
In the spirit of the Better Man guide, I'm going to blog about my efforts to become a better badass, not merely a better man (though I'll keep a log of how I'm doing with the Better Man teachings too). Some of these efforts (and lessons learned) may be contradictory to the Better Man lessons, but that bridge will be burnt to the ground whenever I get to it.
I actually haven't yet done anything to today to increase my badass points, but when I update this later, hopefully I'll have a lesson to share.
Cheers,
Arpan
Wednesday, September 9, 2009
Welcome Back
Thursday, April 23, 2009
Sunday, April 19, 2009
This is why
(Reprinted without permission)
The Bangor night was like ink. Moonless. Cold. The young boy slowly awoke to the scratchings against his second story window. Scratchings and whispers.
Timmy… Timmy…
“What? Who? Who’s there?”
Timmy… it’s me… Billy…
“Billy? But… that accident in the ravine three days ago… they said you were dead!”
No, Timmy… I’m here… I want to play…
“Play? Billy, it’s four in the morning! And you’re hovering! And you’re wearing a black cape with a red silk lining and talking in a weird voice!”
Open the window, Timmy, so we can play! We can play forever now! I’ll teach you how! Just open the window!
“Billy… is this because I got that refurbished XBox?”
What? No, Timmy, it’s because you were always my best friend! It has nothing to do with all the fantastic games you can play or the twenty gig hard drive built in. We can just play cards or something if you don’t believe me. Open the window, Timmy! Open the window!
“Because, see, Greg was here just the other day.”
Greg? That kid in our class? Didn’t he die in that car wreck last July?
“Yeah, he’s apparently a zombie now. Came back and wanted me to let him in so we could play online with XBox Live. He said he was just trying to eat my little sister’s brains but he didn’t even ask me where her room was. Kept me up all night.”
Foolish Greg. A lord of the night such as I would never pass such an opportunity by.
“Yeah, Peter tried that line too.”
Peter? The boy who-
”-vanished in the forest in autumn? Turns out he got bit by a werewolf. He came over last full moon and said something about ‘the hunger’ and ‘sharing the rapturous cloak of the divine Selene’ but all we did was watch my dvds. They look great in 16:9 widescreen because the XBox supports up to 1080p high def and 480p standard but… I mean, I gotta go to school still and you guys are really imposing!”
Timmy, listen to me. The power of a lord of the night dwarfs any mere werewolf. I shall offer you the Dark Gift myself. We will share dominion over the-
”-mere humans who can’t appreciate the blah blah blah. Simon and Lucy Jenkins tried that last week. Remember them? They got sucked down a sewer and then bonded to an alien spider-thing covered in ooze. It was so gross, they got it all over the patio. And just last Friday some crazy high school girl said that if I let her play, she’d let me take her to the prom!”
Covered in blood?
“Yeah! You know her?”
Dude, she’s wild after a few drinks. You should have said yes.
“Really?
Okay, Timmy, look. I’m not gonna keep pretending that we were close when I was alive. But think about it. What happens if your refurbished XBox gets the Red Ring Of Death? Or the even stranger Red Light Of Death? Who’s gonna help you then? You’re gonna want someone like me, someone who can command the dead to do his bidding, someone who can raise it back into an admittedly unholy but perfectly useable mockery of life. So let me in, huh, pal?
“Billy, I’ll tell you what I told that mummy-priest made from the soul of Betty Jenkins on Tuesday. My XBox is covered with the optional SquareTrade warranty that I remembered to purchase separately at the time of checkout for an additional $19.99. That means if it fails during the warranty period, I don’t have to worry. So let me go back to sleep, okay? The swamp monster born of the fire that took the life of a vengeful Bobby Smith always shows up at dawn and I have a math test.”
Timmy. Timmy, wait! Just an hour, Timmy, that’s all I want! Just let me play a little bit! You won’t even know I’m here! Timmy! Timmy! Let me in, please, Timmy! Please!
“Man, I wish we’d never moved to Maine.”
Wednesday, April 15, 2009
Economist.com wins again
Friday, April 3, 2009
I want to say that I was like Will, but I think I was more Carlton. Nonetheless, I think it went well.
Tuesday, March 31, 2009
F is for...

- Arpan
Venture Me



