-
Notifications
You must be signed in to change notification settings - Fork 26
/
pigolf.html
34 lines (25 loc) · 1.34 KB
/
pigolf.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html>
<head>
<title>Puzzle: Pi-Golf</title>
<link rel="stylesheet" type="text/css" href="style.css">
<body>
<p class="subtle"><a href="/">« Boston Python puzzles</a></p>
<h1>Pi-Golf</h1>
<p>Mystery of mysteries, icon of geekdom... the irrational number pi. Is it a
secret code, a message from the universe? Let's find out.</p>
<p>Convert the digits of pi into uppercase ASCII letters.</p>
<ul>
<li>What is the first 3-letter English word in pi? (Hint: The word 'OLD' appears at digit 1807, and it is not the first one.</li>
<li>What is the first 4-letter word? (Hint: it's a weird part of a bird!)</li>
<li>What is the first 5-letter word? (Hint: 'VIRUS' is at 3056055 and it's not the first.)</li>
<li>6-letter word? (It is suuuuch a good word! Hint: Google would have chosen it if somehow they controlled the universe itself which they don't, do they?)</li>
<li>7-letter word...? This is an open question. I have not found it yet!</li>
</ul>
<p>You can find millions of digits of pi online, but I also have txt files of
pi up to a billion digits.</p>
<h2>Solutions</h2>
<ul>
<li>Andrew Ross's solution is <a href="https://github.com/BostonPython/puzzles/blob/gh-pages/solutions/asross/pi.py">pi.py</a></li>
</ul>
<p>If you have a solution you'd like to share see the <a href="solutions.html">Solutions page</a> for instructions.</p>