# public Khan /khan-exercises

### Subversion checkout URL

You can clone with HTTPS or Subversion.

Older
100644 39 lines (35 sloc) 1.527 kb
 ``` af417c35 » Marcia Lee ``` 2011-05-17 Add prime numbers 1 ``` 2fb12892 » spicyj ``` 2011-05-26 toSentence helper to join arrays with a conjunction 2 ``` af417c35 » Marcia Lee ``` 2011-05-17 Add prime numbers 3 ``` 4e4cb9b1 » beneater ``` 2012-04-10 lint: tabs->spaces and jQuery->\$ for exercises 4 5 Prime numbers 6 ``` af417c35 » Marcia Lee ``` 2011-05-17 Add prime numbers 7 8 ``` 4e4cb9b1 » beneater ``` 2012-04-10 lint: tabs->spaces and jQuery->\$ for exercises 9
10
11 getPrime() 12 getOddComposite() 13 getOddComposite() 14 getOddComposite() 15 getEvenComposite() ``` 25e5b1a8 » marcia ``` 2011-09-21 Show prime number hints in same order as multiple choice, maybe fix #… 16 ``` 4e4cb9b1 » beneater ``` 2012-04-10 lint: tabs->spaces and jQuery->\$ for exercises 17 shuffle( [ PRIME, WRONG_1, WRONG_2, WRONG_3, WRONG_4 ] ) 18
``` af417c35 » Marcia Lee ``` 2011-05-17 Add prime numbers 19 ``` 4e4cb9b1 » beneater ``` 2012-04-10 lint: tabs->spaces and jQuery->\$ for exercises 20
21
22

Which of these numbers is prime?

23

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

24

PRIME

25
26
• CHOICE
• 27
28
29
``` af417c35 » Marcia Lee ``` 2011-05-17 Add prime numbers 30 ``` 4e4cb9b1 » beneater ``` 2012-04-10 lint: tabs->spaces and jQuery->\$ for exercises 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
``` af417c35 » Marcia Lee ``` 2011-05-17 Add prime numbers 37 ``` cf021797 » spicyj ``` 2011-06-01 Strip trailing whitespace 38
Something went wrong with that request. Please try again.