Aug 14 2012

Some Quirks of the R Language

wrathematics
R is my favorite programming language.  It's just so useful for getting work done.  Sometimes people will complain that R is a difficult language.  To me, this begs the questions:  difficult for what?  And for whom?  I personally think R is just about the easiest thing in the world for prototyping.  Meaning if you want to quickly crank out some result, R is king.  Now when you get into optimization, Read more >>

Aug 19 2011

Project Euler in R: Problem 7

wrathematics
Problem: What is the 10001st prime number? Commentary: So it's finally time to discuss my prime-searching algorithm, as promised back in Problem 5. We will find primes in the following way: 2 and 3 are prime We examine the odd integers (having already discovered the only even prime) starting with $latex i=5$. First, check if $latex i$ is of the form $latex 6k+3$ for some integer $latex Read more >>