Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 50 lines (44 sloc) 1.738 kb
af417c3 @marcia Add prime numbers
marcia authored
1 <!DOCTYPE html>
2fb1289 @spicyj toSentence helper to join arrays with a conjunction
spicyj authored
2 <html data-require="math word-problems">
af417c3 @marcia Add prime numbers
marcia authored
3 <head>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js and ...
jeresig authored
4 <title>Prime Numbers</title>
5 <script src="../khan-exercise.js"></script>
af417c3 @marcia Add prime numbers
marcia authored
6 </head>
7 <body>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js and ...
jeresig authored
8 <div class="exercise">
9 <div class="vars">
10 <var id="PRIME">getPrime()</var>
2fb1289 @spicyj toSentence helper to join arrays with a conjunction
spicyj authored
11 <var id="PRIME_FACTORS">toSentence( getFactors( PRIME ) )</var>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js and ...
jeresig authored
12
13 <var id="WRONG_1">getOddComposite()</var>
2fb1289 @spicyj toSentence helper to join arrays with a conjunction
spicyj authored
14 <var id="WRONG_1_FACTORS">toSentence( getFactors( WRONG_1 ) )</var>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js and ...
jeresig authored
15
16 <var id="WRONG_2">getOddComposite()</var>
2fb1289 @spicyj toSentence helper to join arrays with a conjunction
spicyj authored
17 <var id="WRONG_2_FACTORS">toSentence( getFactors( WRONG_2 ) )</var>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js and ...
jeresig authored
18
19 <var id="WRONG_3">getOddComposite()</var>
2fb1289 @spicyj toSentence helper to join arrays with a conjunction
spicyj authored
20 <var id="WRONG_3_FACTORS">toSentence( getFactors( WRONG_3 ) )</var>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js and ...
jeresig authored
21
22 <var id="WRONG_4">getEvenComposite()</var>
2fb1289 @spicyj toSentence helper to join arrays with a conjunction
spicyj authored
23 <var id="WRONG_4_FACTORS">toSentence( getFactors( WRONG_4 ) )</var>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js and ...
jeresig authored
24 </div>
af417c3 @marcia Add prime numbers
marcia authored
25
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js and ...
jeresig authored
26 <div class="problems">
27 <div>
28 <p class="question">Which of these numbers is prime?</p>
29 <p class="solution"><var>PRIME</var></p>
8292879 @marcia Take out data-none for prime numbers
marcia authored
30 <ul class="choices" data-show="5">
31 <li><var>WRONG_1</var></li>
32 <li><var>WRONG_2</var></li>
33 <li><var>WRONG_3</var></li>
34 <li><var>WRONG_4</var></li>
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js and ...
jeresig authored
35 </ul>
36 </div>
37 </div>
af417c3 @marcia Add prime numbers
marcia authored
38
190610b @jeresig Retool framework, move Math and Graph logic out of khan-exercise.js and ...
jeresig authored
39 <div class="hints">
40 <p>A prime number has exactly two factors: 1 and itself.</p>
41 <p>The factors of <var>WRONG_1</var> are <var>WRONG_1_FACTORS</var>.</p>
42 <p>The factors of <var>WRONG_2</var> are <var>WRONG_2_FACTORS</var>.</p>
43 <p>The factors of <var>WRONG_3</var> are <var>WRONG_3_FACTORS</var>.</p>
44 <p>The factors of <var>WRONG_4</var> are <var>WRONG_4_FACTORS</var>.</p>
45 <p>The factors of <var>PRIME</var> are <var>PRIME_FACTORS</var>.</p>
46 <p>Thus, <var>PRIME</var> is a prime number.</p>
47 </div>
48 </div>
af417c3 @marcia Add prime numbers
marcia authored
49 </body>
50 </html>
Something went wrong with that request. Please try again.