-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
90 lines (82 loc) · 3.74 KB
/
index.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Euler Project Solutions</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="site-wrapper">
<div class="title">
<h1>Project Euler</h1>
<h5>Solutions by Marty Stepien</h5>
</div>
<div class="description">
<h5>What is Problem Eueler?</h5>
<p>Project Euler is a website with a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. The motivation for starting Project Euler, and its continuation, is to provide a platform for the inquiring mind to delve into unfamiliar areas and learn new concepts in a fun and recreational context.</p>
<p>You can visit and join here: <a href="https://projecteuler.net/">https://projecteuler.net</a></p>
</div>
<!-- Problem 1 -->
<div class="problemContainer">
<h2>Problem 1</h2>
<h4>Multiples of 3 and 5</h4>
<br />
<p>If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.<br /><br />Find the sum of all the multiples of 3 or 5 below given number.</p>
<br />
<input id="input1" type="number" min="1" max="10000" placeholder="Enter your number" />
<button id="btn1">Calculate</button>
<br /><br />
<h5 class="answer">Answer: <span id="answer1"></span></h5>
</div>
<!-- Problem 2 -->
<div class="problemContainer">
<h2>Problem 2</h2>
<h4>Even Fibonacci numbers</h4>
<br />
<p>Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: <br />1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...<br /><br />By considering the terms in the Fibonacci sequence whose values do not exceed given number, find the sum of the even-valued terms.</p>
<br />
<input id="input2" type="number" min="1" max="5000000" placeholder="Enter your number" />
<button id="btn2">Calculate</button>
<br /><br />
<h5 class="answer">Answer: <span id="answer2"></span></h5>
</div>
<!-- Problem 3 -->
<div class="problemContainer">
<h2>Problem 3</h2>
<h4>Largest prime factor</h4>
<br />
<p>The prime factors of 13195 are 5, 7, 13 and 29.<br /><br />What is the largest prime factor of the given number?</p>
<br />
<input id="input3" type="number" min="1" max="5000000" placeholder="Enter your number" />
<button id="btn3">Calculate</button>
<br /><br />
<h5 class="answer">Answer: <span id="answer3"></span></h5>
</div>
<!-- Problem 4 -->
<div class="problemContainer">
<h2>Problem 4</h2>
<h4>Largest palindrome product</h4>
<br />
<p>A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.<br /><br />Find the largest palindrome made from the product of two same digit long numbers - specify the number of digits.</p>
<br />
<input id="input4" type="number" min="1" max="10" placeholder="Enter your number" />
<button id="btn4">Calculate</button>
<br /><br />
<h5 class="answer">Answer: <span id="answer4"></span></h5>
</div>
<!-- Problem 5 -->
<div class="problemContainer">
<h2>Problem 5</h2>
<h4>Smallest multiple</h4>
<br />
<p>2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.<br /><br />What is the smallest positive number that is evenly divisible by all of the numbers from 1 to the given number?</p>
<br />
<input id="input5" type="number" min="1" max="100" placeholder="Enter your number" />
<button id="btn5">Calculate</button>
<br /><br />
<h5 class="answer">Answer: <span id="answer5"></span></h5>
</div>
</div>
<script src="main.js"></script>
</body>
</html>