summaryrefslogtreecommitdiffstats
path: root/097.bc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-05-16 15:22:24 -0500
committerJesse Luehrs <doy@tozt.net>2009-05-16 15:22:24 -0500
commit27b1cc1f9fdab403a743bd328cd212b4f9e9beff (patch)
treea18d5cb27159af96c8b122878623e8dfffb544a3 /097.bc
parente4a7c4d35c6b44673832b8b7619bade64ea76727 (diff)
downloadprojecteuler-27b1cc1f9fdab403a743bd328cd212b4f9e9beff.tar.gz
projecteuler-27b1cc1f9fdab403a743bd328cd212b4f9e9beff.zip
oops, this was named wrong
Diffstat (limited to '097.bc')
-rw-r--r--097.bc11
1 files changed, 11 insertions, 0 deletions
diff --git a/097.bc b/097.bc
new file mode 100644
index 0000000..295352c
--- /dev/null
+++ b/097.bc
@@ -0,0 +1,11 @@
+#!/usr/bin/bc
+
+accum = 1
+for (i = 0; i < 7830457; i++) {
+ accum *= 2
+ scale = 0
+ accum = accum % 10^10
+ scale = 20
+}
+28433 * accum + 1
+halt