Tested tool guide
Tested browser tools
Checked August 16, 2026
What Prime Factorization Tree does, with a checked example
Type any integer and this tool grows a factor tree, splitting each composite node into a pair of factors until every leaf is prime, with each division animated as it happens. It then reports the unique prime factorization with exponents, the divisor count, and, for two numbers, the GCD and LCM derived from those exponents. The usual surprise: the tree you see is only one possible drawing. 360 can split first as 2 x 180 or as 18 x 20, and both are correct; only the multiset of prime leaves is unique.
Worked example
A concrete input and expected output from the current implementation.
->
Expected output
Animated tree: 360 -> 2 x 180 -> 2 x 90 -> 2 x 45 -> 3 x 15 -> 3 x 5. Unique prime factorization: 2^3 x 3^2 x 5. Divisor count: (3+1)(2+1)(1+1) = 24.
Each split divides the current value by its smallest prime factor: 360 halves three times, then divides by 3 twice, leaving 5. Grouping the six prime leaves by exponent gives 2^3 x 3^2 x 5, and the divisor count multiplies each exponent plus one: 4 x 3 x 2 = 24.