Maths functions in PHP and Javascript

My own PHP mathematic functions

Greatest Common Divisor (or Factor or Denominator) between A and B


Try it with a third number!
Least Common Multiple of A e B


Try it with a third number!
Euclid's Game

Check if a number is prime


Find all Primes between A and B

FIBONACCI SEQUENCE GENERATOR SCRIPT (Javascript)



It's well to note that all results from F79 on are not exact because of javascripts internal limitations in representing large integers. Whole numbers beyond that threshold cannot be represented correctly.
Furthermore all results beyond F102 are represented as 'floating point decimal integers' in hex format.
FIBONACCI SEQUENCE GENERATOR SCRIPT (PHP)
PHP integer thresholds are greater than javascript thresholds, especially when using the bcmath extension. There is practically no limit!

-- OR --







Pascal Triangle Generator



D'Orazio Triangle Generator