# Khan/khan-exercises

### Subversion checkout URL

You can clone with HTTPS or Subversion.

Older
100644 39 lines (35 sloc) 1.527 kb
 af417c3 Add prime numbers marcia authored May 17, 2011 1 2fb1289 toSentence helper to join arrays with a conjunction spicyj authored May 26, 2011 2 af417c3 Add prime numbers marcia authored May 17, 2011 3 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 4 5 Prime numbers 6 af417c3 Add prime numbers marcia authored May 17, 2011 7 8 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 9
10
11 getPrime() 12 getOddComposite() 13 getOddComposite() 14 getOddComposite() 15 getEvenComposite() 25e5b1a Show prime number hints in same order as multiple choice, maybe fix #296... marcia authored Sep 21, 2011 16 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 17 shuffle( [ PRIME, WRONG_1, WRONG_2, WRONG_3, WRONG_4 ] ) 18
af417c3 Add prime numbers marcia authored May 17, 2011 19 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 20
21
22

Which of these numbers is prime?

23

\large{CHOICES.join( ",\\ " )}

24

PRIME

25
26
• CHOICE
• 27
28
29
af417c3 Add prime numbers marcia authored May 17, 2011 30 4e4cb9b lint: tabs->spaces and jQuery->\$ for exercises beneater authored Apr 10, 2012 31
32

A prime number has exactly two factors: 1 and itself.

33

The factors of CHOICE are toSentence( getFactors( CHOICE ) ).

34

Thus, PRIME is a prime number.

35
36
af417c3 Add prime numbers marcia authored May 17, 2011 37 cf02179 Strip trailing whitespace spicyj authored Jun 1, 2011 38
Something went wrong with that request. Please try again.