Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 52 lines (45 sloc) 1.681 kB
af417c3 Add prime numbers
Marcia Lee authored
1 <!DOCTYPE html>
2fb1289 @spicyj toSentence helper to join arrays with a conjunction
spicyj authored
2 <html data-require="math word-problems">
af417c3 Add prime numbers
Marcia Lee authored
3 <head>
72418b8 @jeresig Add meta charset to all HTML pages.
jeresig authored
4 <meta charset="UTF-8" />
07d95d3 @spicyj Rename EVERYTHING; closes #323.
spicyj authored
5 <title>Prime numbers</title>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
6 <script src="../khan-exercise.js"></script>
af417c3 Add prime numbers
Marcia Lee authored
7 </head>
8 <body>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
9 <div class="exercise">
10 <div class="vars">
11 <var id="PRIME">getPrime()</var>
2fb1289 @spicyj toSentence helper to join arrays with a conjunction
spicyj authored
12 <var id="PRIME_FACTORS">toSentence( getFactors( PRIME ) )</var>
cf02179 @spicyj Strip trailing whitespace
spicyj authored
13
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
14 <var id="WRONG_1">getOddComposite()</var>
2fb1289 @spicyj toSentence helper to join arrays with a conjunction
spicyj authored
15 <var id="WRONG_1_FACTORS">toSentence( getFactors( WRONG_1 ) )</var>
cf02179 @spicyj Strip trailing whitespace
spicyj authored
16
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
17 <var id="WRONG_2">getOddComposite()</var>
2fb1289 @spicyj toSentence helper to join arrays with a conjunction
spicyj authored
18 <var id="WRONG_2_FACTORS">toSentence( getFactors( WRONG_2 ) )</var>
cf02179 @spicyj Strip trailing whitespace
spicyj authored
19
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
20 <var id="WRONG_3">getOddComposite()</var>
2fb1289 @spicyj toSentence helper to join arrays with a conjunction
spicyj authored
21 <var id="WRONG_3_FACTORS">toSentence( getFactors( WRONG_3 ) )</var>
cf02179 @spicyj Strip trailing whitespace
spicyj authored
22
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
23 <var id="WRONG_4">getEvenComposite()</var>
2fb1289 @spicyj toSentence helper to join arrays with a conjunction
spicyj authored
24 <var id="WRONG_4_FACTORS">toSentence( getFactors( WRONG_4 ) )</var>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
25 </div>
af417c3 Add prime numbers
Marcia Lee authored
26
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
27 <div class="problems">
28 <div>
29 <p class="question">Which of these numbers is prime?</p>
30 <p class="solution"><var>PRIME</var></p>
35e9cd5 @marcia Switch probability 1 to free answer
marcia authored
31 <ul class="choices">
075f731 @spicyj Space/tab cleanup
spicyj authored
32 <li><var>WRONG_1</var></li>
33 <li><var>WRONG_2</var></li>
34 <li><var>WRONG_3</var></li>
35 <li><var>WRONG_4</var></li>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
36 </ul>
37 </div>
38 </div>
af417c3 Add prime numbers
Marcia Lee authored
39
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
40 <div class="hints">
41 <p>A prime number has exactly two factors: 1 and itself.</p>
42 <p>The factors of <var>WRONG_1</var> are <var>WRONG_1_FACTORS</var>.</p>
cf02179 @spicyj Strip trailing whitespace
spicyj authored
43 <p>The factors of <var>WRONG_2</var> are <var>WRONG_2_FACTORS</var>.</p>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js a…
jeresig authored
44 <p>The factors of <var>WRONG_3</var> are <var>WRONG_3_FACTORS</var>.</p>
45 <p>The factors of <var>WRONG_4</var> are <var>WRONG_4_FACTORS</var>.</p>
46 <p>The factors of <var>PRIME</var> are <var>PRIME_FACTORS</var>.</p>
47 <p>Thus, <var>PRIME</var> is a prime number.</p>
48 </div>
49 </div>
af417c3 Add prime numbers
Marcia Lee authored
50 </body>
cf02179 @spicyj Strip trailing whitespace
spicyj authored
51 </html>
Something went wrong with that request. Please try again.