Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Modified the array of possible jump lengths for moving through questi…

…ons so that all of them are coprime with the number of question bins. This guarantees that users will not repeat a question until they have seen 'bins' questions. Reference Ben Alpert

Reviewers: alpert

Reviewed By: alpert

CC: eater, jace

Differential Revision: http://phabricator.khanacademy.org/D548
  • Loading branch information...
commit eabb716328091869812e425f429ef4682a2c06e6 1 parent 1293c32
@Sohl-Dickstein Sohl-Dickstein authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 khan-exercise.js
View
6 khan-exercise.js
@@ -76,8 +76,10 @@ var Khan = (function() {
}
// Numbers which are coprime to the number of bins, used for jumping through
- // exercises
- var primes = [3, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43,
+ // exercises. To quickly test a number in python use code like:
+ // import fractions
+ // fractions.gcd( 197, 200)
+ var primes = [197, 3, 193, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43,
47, 53, 59, 61, 67, 71, 73, 79, 83],
/*
Please sign in to comment.
Something went wrong with that request. Please try again.