aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoelle Maslak <jmaslak@antelope.net>2019-04-29 00:09:57 -0600
committerJoelle Maslak <jmaslak@antelope.net>2019-04-29 00:09:57 -0600
commitf5603bb8366797ae519bb8f1e7a3a4bbb257c15a (patch)
tree92cca3b089ff9d29e60d36f769f81745b7888f88
parentd3f8dcef51c45538e3be8255bd7064fc782cb48c (diff)
downloadperlweeklychallenge-club-f5603bb8366797ae519bb8f1e7a3a4bbb257c15a.tar.gz
perlweeklychallenge-club-f5603bb8366797ae519bb8f1e7a3a4bbb257c15a.tar.bz2
perlweeklychallenge-club-f5603bb8366797ae519bb8f1e7a3a4bbb257c15a.zip
Perl 5 solution to Week 6, Problem 2
-rwxr-xr-xchallenge-006/joelle-maslak/perl5/ch-2.pl20
1 files changed, 20 insertions, 0 deletions
diff --git a/challenge-006/joelle-maslak/perl5/ch-2.pl b/challenge-006/joelle-maslak/perl5/ch-2.pl
new file mode 100755
index 0000000000..7ae8f0c9bc
--- /dev/null
+++ b/challenge-006/joelle-maslak/perl5/ch-2.pl
@@ -0,0 +1,20 @@
+#!/usr/bin/env perl
+use v5.26;
+use strict;
+use warnings;
+
+use bignum;
+
+#
+# Copyright © 2019 Joelle Maslak
+# All Rights Reserved - See License
+#
+# I am assuming that we really wanted Ramanujan's Constant, and not the
+# linked to Wiki page on the Landau-Ramanujan Constant which is
+# something else entirely!
+#
+# Checked against http://oeis.org/A060295
+
+# We'll give *33* digits of precison, not 32. ;)
+say substr(640320**3 + 744 - 196844/(640320**3 + 744), 0, 34);
+