Skip to content

Commit

Permalink
No 28 solved
Browse files Browse the repository at this point in the history
  • Loading branch information
kohske committed Mar 24, 2012
1 parent e66b437 commit 94ff4ec
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions R/p0028.r
@@ -0,0 +1,7 @@
# http://projecteuler.net/problem=28

a <- 1 + sum(cumsum(rep(seq(2, 1001, 2), each=4)) + 1)

print(a)
cat(a, file = pipe('pbcopy'))

0 comments on commit 94ff4ec

Please sign in to comment.