Prime Factorization Practice

Prime Factorization Practice
Loading the math board and drawing, please wait…
2022-12-01 18:55
In collections Gemeinsame Teiler & ggT
This example demonstrates the concept of prime factorization. It generates random numbers for students to practice prime factorization. Key mathematical concepts include prime factorization, factors, and multiples. GeoGebra commands such as Shuffle, Sequence, and Element are used for random number generation and operations. Suitable for students in grades 5-6.

GeoGebra Commands & Parameters

  1. Shuffle(Sequence[Random[1, 5], i, 1, 100]) → randomNosPositionAnswerCorrect1, {4, 4, 1, 1, 1, 2, 5, 2, 5, 2, 4, 2, 1, 1, 2, 2, 1, 2, 4, 1, 5, 4, 5, 2, 3, 2, 3, 2, 5, 4, 1, 3, 1, 1, 3, 5, 3, 4, 2, 4, 2, 2, 2, 2, 4, 5, 5, 4, 4, 4, 2, 4, 1, 1, 3, 4, 4, 4, 1, 5, 1, 5, 3, 2, 4, 2, 5, 3, 5, 2, 3, 5, 4, 1, 4, 1, 3, 2, 5, 5, 2, 3, 1, 1, 3, 2, 2, 5, 5, 1, 1, 2, 3, 1, 2, 1, 1, 3, 3, 1}
  2. Sequence(RandomElement[Remove[Sequence[5], {randomNosPositionAnswerCorrect1(i)}]], i, 1, 100) → randomNosPositionAnswerWrong1, {5, 2, 4, 5, 4, 4, 3, 1, 4, 1, 3, 5, 2, 2, 4, 5, 5, 4, 2, 5, 4, 2, 2, 1, 5, 5, 2, 4, 1, 5, 3, 5, 5, 2, 4, 1, 1, 5, 4, 5, 4, 5, 4, 5, 1, 2, 4, 5, 2, 3, 3, 1, 2, 3, 1, 3, 1, 3, 2, 3, 4, 3, 2, 4, 5, 1, 4, 5, 2, 3, 5, 1, 1, 2, 1, 4, 5, 3, 4, 4, 3, 5, 5, 2, 1, 4, 5, 1, 2, 3, 4, 3, 4, 5, 1, 5, 3, 4, 4, 2}
  3. Sequence(RandomElement[Remove[Remove[Sequence[5], {randomNosPositionAnswerCorrect1(i)}], {randomNosPositionAnswerWrong1(i)}]], i, 1, 100) → randomNosPositionAnswerWrong2, {1, 3, 2, 2, 3, 1, 1, 3, 2, 5, 2, 3, 3, 4, 5, 4, 2, 1, 5, 3, 2, 1, 3, 4, 1, 1, 5, 5, 3, 2, 5, 1, 4, 3, 1, 3, 4, 3, 3, 3, 5, 1, 5, 4, 3, 3, 1, 2, 5, 2, 4, 3, 5, 2, 2, 5, 5, 5, 5, 4, 5, 1, 5, 1, 3, 3, 2, 2, 3, 5, 4, 2, 3, 3, 2, 5, 2, 1, 1, 2, 1, 1, 2, 5, 2, 5, 3, 3, 3, 4, 2, 1, 2, 2, 5, 3, 2, 2, 5, 4}
  4. Sequence(RandomElement[Remove[Remove[Remove[Sequence[5], {randomNosPositionAnswerCorrect1(i)}], {randomNosPositionAnswerWrong1(i)}], {randomNosPositionAnswerWrong2(i)}]], i, 1, 100) → randomNosPositionAnswerCorrect2, {2, 1, 3, 3, 2, 5, 4, 5, 3, 3, 1, 4, 5, 3, 3, 1, 3, 5, 1, 4, 3, 5, 4, 3, 4, 3, 1, 3, 2, 1, 2, 4, 3, 5, 5, 4, 5, 2, 1, 2, 3, 3, 1, 3, 2, 4, 2, 1, 1, 5, 5, 2, 4, 5, 4, 2, 3, 2, 3, 2, 3, 2, 4, 5, 1, 4, 3, 4, 4, 4, 1, 3, 5, 4, 3, 2, 4, 5, 3, 3, 5, 2, 3, 3, 4, 3, 1, 4, 1, 5, 5, 4, 1, 3, 3, 2, 5, 5, 2, 5}
  5. Element(randomNosPositionAnswerCorrect2, Mod[questionCount, 100] + 1) → numPositionAnswerCorrect2
  6. Element(randomNosPositionAnswerCorrect1, Mod[questionCount, 100] + 1) → numPositionAnswerCorrect1
  7. Shuffle({1, 2, 3, 4, 5, 6, 7, 8}) → NosCase, {5, 6, 7, 2, 3, 8, 4, 1}
  8. Element(randomNosPositionAnswerWrong1, Mod[questionCount, 100] + 1) → numPositionAnswerWrong1
  9. Element(randomNosPositionAnswerWrong2, Mod[questionCount, 100] + 1) → numPositionAnswerWrong2
  10. Sequence(RandomElement[Remove[Remove[Remove[Remove[Sequence[5], {randomNosPositionAnswerCorrect1(i)}], {randomNosPositionAnswerWrong1(i)}], {randomNosPositionAnswerWrong2(i)}], {randomNosPositionAnswerCorrect2(i)}]], i, 1, 100) → randomNosPositionAnswerWrong3, {3, 5, 5, 4, 5, 3, 2, 4, 1, 4, 5, 1, 4, 5, 1, 3, 4, 3, 3, 2, 1, 3, 1, 5, 2, 4, 4, 1, 4, 3, 4, 2, 2, 4, 2, 2, 2, 1, 5, 1, 1, 4, 3, 1, 5, 1, 3, 3, 3, 1, 1, 5, 3, 4, 5, 1, 2, 1, 4, 1, 2, 4, 1, 3, 2, 5, 1, 1, 1, 1, 2, 4, 2, 5, 5, 3, 1, 4, 2, 1, 4, 4, 4, 4, 5, 1, 4, 2, 4, 2, 3, 5, 5, 4, 4, 4, 4, 1, 1, 3}
  11. Element(randomNosPositionAnswerWrong3, Mod[questionCount, 100] + 1) → numPositionAnswerWrong3
  12. Shuffle(Sequence[Random[1, 49], i, 1, 100]) → randomNosForY, {17, 43, 17, 43, 28, 6, 22, 17, 42, 16, 33, 18, 43, 2, 22, 41, 21, 6, 28, 4, 11, 35, 24, 34, 17, 4, 34, 23, 29, 21, 24, 45, 12, 43, 32, 22, 38, 39, 28, 40, 1, 16, 47, 3, 33, 48, 7, 20, 43, 26, 35, 35, 1, 45, 26, 46, 38, 43, 12, 16, 23, 26, 31, 15, 49, 2, 22, 11, 3, 11, 22, 2, 16, 7, 48, 15, 45, 32, 31, 35, 28, 28, 27, 44, 37, 7, 47, 25, 3, 18, 5, 44, 7, 42, 43, 44, 39, 26, 10, 24}
  13. Append(true, Sequence[If[randomNosForY(i) ≟ randomNosForY(i - 1), false, true], i, 2, 100]) → stayY
  14. Remove(Sequence[If[stayY(i), randomNosForY(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForYwithoutRepeat
  15. Shuffle(Sequence[Random[50, 99], i, 1, 100]) → randomNosForX, {51, 92, 96, 56, 51, 74, 80, 99, 63, 86, 72, 80, 67, 85, 60, 94, 94, 62, 88, 86, 76, 96, 68, 92, 55, 87, 78, 74, 79, 98, 76, 74, 54, 60, 76, 57, 66, 71, 86, 93, 85, 50, 51, 98, 84, 50, 52, 50, 72, 54, 92, 91, 58, 74, 67, 69, 97, 84, 72, 91, 54, 60, 81, 51, 50, 92, 89, 60, 68, 54, 58, 50, 71, 56, 51, 83, 78, 58, 73, 84, 93, 53, 67, 90, 63, 80, 66, 68, 57, 67, 93, 88, 79, 99, 88, 75, 78, 62, 75, 66}
  16. Append(true, Sequence[If[randomNosForX(i) ≟ randomNosForX(i - 1), false, true], i, 2, 100]) → stayX
  17. Remove(Sequence[If[stayX(i), randomNosForX(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForXwithoutRepeat
  18. Shuffle(Sequence[Random[2, 10], i, 1, 100]) → randomNosForK, {2, 9, 3, 4, 5, 3, 7, 7, 2, 3, 2, 8, 10, 5, 6, 5, 9, 3, 8, 6, 5, 7, 3, 9, 6, 5, 5, 8, 2, 8, 10, 2, 9, 8, 6, 6, 9, 7, 7, 10, 3, 5, 7, 2, 6, 8, 10, 3, 6, 6, 7, 4, 10, 3, 2, 3, 10, 9, 4, 7, 6, 9, 7, 3, 5, 6, 4, 5, 9, 10, 8, 7, 8, 3, 2, 10, 8, 2, 8, 3, 9, 7, 5, 7, 6, 2, 10, 3, 7, 3, 5, 8, 7, 9, 8, 8, 3, 7, 6, 8}
  19. Append(true, Sequence[If[randomNosForK(i) ≟ randomNosForK(i - 1), false, true], i, 2, 100]) → stayK
  20. IndexOf(true, checkboxes) → SelectedCheckbox
  21. Point(Line[F11, Vector[(0, 0), (0, -1.2)]]) → F21
  22. Shuffle(Sequence[Random[2, 10], i, 1, 100]) → randomNosForA, {8, 6, 10, 3, 3, 8, 9, 5, 2, 5, 5, 8, 3, 4, 9, 5, 3, 4, 6, 6, 2, 7, 9, 10, 7, 8, 9, 10, 9, 3, 3, 7, 8, 2, 8, 8, 2, 4, 7, 8, 4, 4, 3, 2, 4, 6, 7, 8, 8, 3, 9, 10, 10, 3, 7, 7, 6, 8, 8, 5, 9, 4, 4, 2, 10, 10, 10, 8, 4, 9, 9, 8, 10, 3, 6, 4, 5, 4, 2, 8, 2, 5, 5, 4, 5, 3, 9, 9, 2, 5, 8, 7, 5, 10, 8, 7, 6, 7, 3, 7}
  23. Append(true, Sequence[If[randomNosForA(i) ≟ randomNosForA(i - 1), false, true], i, 2, 100]) → stayA
  24. Remove(Sequence[If[stayA(i), randomNosForA(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForAwithoutRepeat
  25. Element(randomNosForAwithoutRepeat, Mod[questionCount, 100] + 1) → numA
  26. Remove(Sequence[If[stayK(i), randomNosForK(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForKwithoutRepeat
  27. Element(randomNosForKwithoutRepeat, Mod[questionCount, 100] + 1) → numK
  28. Zip((a * k), a, randomNosForAwithoutRepeat, k, randomNosForKwithoutRepeat) → randomNosForZ
  29. Textfield(aInput) → InputBox1
  30. Textfield(bInput) → InputBox2
  31. Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, ptopleftcornerfeedback, ptoprightcornerfeedback, pbottomrightcornerfeedback, pbottomleftcornerfeedback
  32. Shuffle(Sequence[Random[1, 15], i, 1, 100]) → randomNosCase, {4, 7, 9, 13, 3, 7, 11, 8, 9, 12, 1, 9, 14, 9, 4, 1, 9, 9, 4, 9, 8, 5, 12, 3, 10, 10, 6, 4, 4, 15, 2, 11, 12, 6, 4, 9, 12, 15, 8, 11, 14, 13, 11, 11, 3, 13, 9, 7, 2, 6, 1, 5, 8, 15, 8, 5, 5, 9, 2, 15, 8, 8, 9, 15, 14, 4, 14, 9, 5, 13, 3, 2, 2, 12, 12, 7, 6, 2, 13, 13, 14, 3, 13, 15, 7, 4, 11, 12, 7, 4, 2, 3, 12, 3, 5, 4, 3, 2, 11, 11}
  33. Sequence(RandomElement[{-2, -1, 1, 2}], i, 1, 200) → randomNosForNumDeviation1, {2, -1, 1, 1, -2, -1, 2, 2, 2, 2, -2, 1, 1, -2, 1, -1, 1, 1, 1, 1, -1, -1, 2, -2, -2, 1, 2, 1, 2, -1, -2, 2, -1, -1, 2, 1, -1, 2, 1, 1, 2, 1, -1, 1, 2, -1, -2, 2, 1, -1, -1, 2, 2, 2, -1, 1, 1, -1, 1, 2, -1, 1, 2, 1, 1, 1, -2, 2, 1, 2, 1, -2, -2, 1, 1, -2, 2, 1, 1, -2, 2, 1, -2, -2, 1, -2, -2, -1, 1, 2, -2, -1, 2, 2, 2, -1, 1, -2, -1, -1, -1, -2, -2, 1, 1, 2, 2, 1, -2, 2, 2, -2, 2, 1, -1, -2, 1, -1, -2, 1, -1, 2, -1, -2, 1, 2, 2, 1, -2, -2, 1, -1, 2, 1, 2, 2, 2, 2, -2, -1, 2, 2, -2, 1, 1, -2, -2, -1, -2, -2, 1, 1, -1, 2, -2, -2, 2, 2, 2, 2, -2, 1, -2, -1, -2, -2, -2, -1, -2, 1, -2, 1, -2, -2, -1, -1, 1, -2, 2, -2, 1, -2, -1, 2, -1, -1, -1, -2, 1, 1, 2, -2, -2, 1, 2, 1, -2, 1, -2, 1}
  34. Element(randomNosForNumDeviation1, Mod[questionCount, 100] + 1) → numDeviation1
  35. Zip(RandomElement[{-2, -1, 1, 2} \ {m}], m, randomNosForNumDeviation1) → randomNosForNumDeviation2
  36. Element(randomNosForNumDeviation2, Mod[questionCount, 100] + 1) → numDeviation2
  37. Append(true, Sequence[If[randomNosCase(i) ≟ randomNosCase(i - 1), false, true], i, 2, 100]) → stayNos
  38. Remove(Sequence[If[stayNos(i), randomNosCase(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosCasewithoutRepeat
  39. If((numPositionAnswerCorrect1 ≟ 1 ∨ numPositionAnswerCorrect2 ≟ 1) ∧ checkbox1 ≟ true, true, false) → c1
  40. If((numPositionAnswerCorrect1 ≟ 2 ∨ numPositionAnswerCorrect2 ≟ 2) ∧ checkbox2 ≟ true, true, false) → c2
  41. If((numPositionAnswerCorrect1 ≟ 3 ∨ numPositionAnswerCorrect2 ≟ 3) ∧ checkbox3 ≟ true, true, false) → c3
  42. If((numPositionAnswerCorrect1 ≟ 4 ∨ numPositionAnswerCorrect2 ≟ 4) ∧ checkbox4 ≟ true, true, false) → c4
  43. If((numPositionAnswerCorrect1 ≟ 5 ∨ numPositionAnswerCorrect2 ≟ 5) ∧ checkbox5 ≟ true, true, false) → c5
  44. Polygon(PtopLeftCornerFeedback1, PbottomLeftCornerFeedback1, PbottomRightCornerFeedback1, PtopRightCornerFeedback1) → rectangleCorrect1, i, j_1, k_1, l_1
  45. Polygon(PtopLeftCornerFeedback2, PbottomLeftCornerFeedback2, PbottomRightCornerFeedback2, PtopRightCornerFeedback2) → rectangleCorrect2, i_1, j_2, k_2, l_2
  46. Polygon(PtopLeftCornerFeedback3, PtopRightCornerFeedback3, PbottomRightCornerFeedback3, PbottomLeftCornerFeedback3) → rectangleCorrect3, i_2, j_3, k_3, l_3
  47. Polygon(PtopLeftCornerFeedback4, PtopRightCornerFeedback4, PbottomRightCornerFeedback4, PbottomLeftCornerFeedback4) → rectangleCorrect4, i_3, j_4, k_4, l_4
  48. SpeechBubbleRight(O, 6, 1) → poly1
  49. CountIf(x ≟ true, checkboxes) → countCheckboxes

AI Drawing Prompt Reference

Create an interactive educational interface for practicing prime factorization. Display a randomly generated target number in the center, surrounded by five clickable option buttons, two of which are correct answers and three are incorrect. Each option has a checkbox for selection. Below, provide two input boxes for students to enter their factorization results. When a correct option is chosen, show a green rectangle feedback; for incorrect choices, show a red rectangle. All numbers and option positions are randomly shuffled each time a new question appears. The layout is clean and suitable for grades 5-6 students.
The prompt above was compiled from the original drawing commands and is for reference only.