Visualizing Prime Factorization of a Given Number
Loading the math board and drawing, please wait…
This example demonstrates how to compute and display the prime factorization of a given integer in a clear, interactive way. It highlights the phenomenon that every integer can be expressed as a product of primes (up to ordering), and it presents the decomposition as structured text or a table for quick reading.
The core math concepts include prime factors, divisibility, iterative factorization, and organizing factor-multiset data for display.
Construction in GeoGebra: the built-in command PrimeFactors generates a list of prime factors from the user input; Append is used to accumulate factors into a working list (listA); Zip combines/encodes related lists into a single packaged structure; TableText outputs the factorization results as readable table text; LaTeX and Textfield format and present the results with mathematical typesetting and interactive input controls (objects such as text1–text7, InputBox1, a, n, l1, l2, listA).
Suitable for middle-to-high school learners and classroom demos focused on number theory foundations and exploratory computation.
GeoGebra Commands & Parameters
PrimeFactors(a) → l1Append(1, Sequence[Product[l1, k], k, 1, Length[l1]]) → l2Zip(a / k, k, l2) → listATableText({First[l1, n]}, "iv") → text2TableText({First[listA, n + 1]}, "|100_iv") → text3LaTeX(a) → text4LaTeX(l1) → text6Textfield(a) → InputBox1
AI Drawing Prompt Reference
Create an interactive visualization that displays the prime factorization of a user-provided integer. Include an editable input box for the integer; compute its prime factors and organize the factorization data into clear, readable table text. Present the decomposition in a structured, multi-part format so viewers can quickly understand the factor list and the associated product structure. Also include mathematically typeset text for the input integer and for the prime-factor list as supporting labels.
The prompt above was compiled from the original drawing commands and is for reference only.