Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (45 sloc) 1.681 kb
<!DOCTYPE html>
<html data-require="math word-problems">
<meta charset="UTF-8" />
<title>Prime numbers</title>
<script src="../khan-exercise.js"></script>
<div class="exercise">
<div class="vars">
<var id="PRIME">getPrime()</var>
<var id="PRIME_FACTORS">toSentence( getFactors( PRIME ) )</var>
<var id="WRONG_1">getOddComposite()</var>
<var id="WRONG_1_FACTORS">toSentence( getFactors( WRONG_1 ) )</var>
<var id="WRONG_2">getOddComposite()</var>
<var id="WRONG_2_FACTORS">toSentence( getFactors( WRONG_2 ) )</var>
<var id="WRONG_3">getOddComposite()</var>
<var id="WRONG_3_FACTORS">toSentence( getFactors( WRONG_3 ) )</var>
<var id="WRONG_4">getEvenComposite()</var>
<var id="WRONG_4_FACTORS">toSentence( getFactors( WRONG_4 ) )</var>
<div class="problems">
<p class="question">Which of these numbers is prime?</p>
<p class="solution"><var>PRIME</var></p>
<ul class="choices">
<div class="hints">
<p>A prime number has exactly two factors: 1 and itself.</p>
<p>The factors of <var>WRONG_1</var> are <var>WRONG_1_FACTORS</var>.</p>
<p>The factors of <var>WRONG_2</var> are <var>WRONG_2_FACTORS</var>.</p>
<p>The factors of <var>WRONG_3</var> are <var>WRONG_3_FACTORS</var>.</p>
<p>The factors of <var>WRONG_4</var> are <var>WRONG_4_FACTORS</var>.</p>
<p>The factors of <var>PRIME</var> are <var>PRIME_FACTORS</var>.</p>
<p>Thus, <var>PRIME</var> is a prime number.</p>
Jump to Line
Something went wrong with that request. Please try again.