In process of redoing everything I've done for project euler. Just redid #1 & #4 in ruby. Now they are one liners effectively