Doing Math With JavaScript
This section of the JavaScripter.net website contains
(1) Code examples and notes on various aspects of JavaScript math.
(2) Short math essays (here JavaScript & the browser may be used as computation tools)
(3) A couple of JavaScript calculators.
Probability and Statistics
Maximal intervals between rare random events
Primes
Trial division primality tests (in JavaScript FAQ section)
The Miller-Rabin primality test
Prime Twins
Prime Quadruplets
Prime Sextuplets
Generalized Legendre conjecture:
Is there a prime between ns and (n+1)s for s < 2?
Primes between consecutive squares:
How many primes are there between n2 and (n+1)2?
Primes between consecutive cubes:
How many primes are there between n3 and (n+1)3?
Stronger-than-Goldbach conjecture:
Every even number n > 4208 is a sum of two prime twins!?
Maximal gaps between prime k-tuples:
gk(p) < Mk logk+1p.
Number Theory & Arithmetic Functions:
Divisors d(n), Sum of Divisors σ(n), Totient φ(n), Prime Factorization
Prime Factors Calculator (up to 20 digits)
Euler's Totient Function φ(n) (up to 20 digits)
Divisors Calculator: σ(n) and d(n) (up to 20 digits)
Highly Composite Numbers (up to 20 digits)
Other Calculators
City Distance Calculator
More on Factorization
Factorization of numbers up to 9007199254740992 = 253
Finding the least factor in integers under 1020 (to be published soon)
Copyright
© 1999-2011, JavaScripter.net.