Solving project euler problems in q.