Magic Prime Number Square

Magic Prime Number Square
Loading the math board and drawing, please wait…
2021-09-20 22:11
In collections Primzahlen
This example demonstrates a unique prime number square where students need to find the prime numbers that satisfy the conditions, making the sum of numbers in each row, column, and both diagonals equal. Key mathematical concepts include prime numbers, sequences, and geometric construction. GeoGebra commands used include Textfield, Polygon, Shuffle, etc. Suitable for students in grades 5-6.

GeoGebra Commands & Parameters

  1. Textfield(fInput) → Eingabefeld4
  2. Textfield(bInput) → InputBox2
  3. Textfield(cInput) → Eingabefeld1
  4. Textfield(dInput) → Eingabefeld2
  5. Textfield(eInput) → Eingabefeld3
  6. Textfield(aInput) → InputBox1
  7. Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, ptopleftcornerfeedback, ptoprightcornerfeedback, pbottomrightcornerfeedback, pbottomleftcornerfeedback
  8. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForX, {10, 2, 6, 0, 4, 1, 1, 8, 10, 5, 8, 8, 4, 0, 10, 1, 7, 2, 5, 6, 10, 5, 9, 2, 0, 2, 6, 3, 2, 5, 5, 5, 5, 0, 8, 10, 10, 4, 3, 7, 5, 4, 3, 4, 8, 6, 10, 3, 3, 8, 7, 1, 3, 1, 9, 7, 10, 7, 0, 6, 3, 9, 2, 9, 10, 3, 4, 9, 7, 10, 5, 2, 9, 6, 2, 8, 6, 8, 8, 3, 2, 9, 3, 6, 9, 0, 1, 10, 1, 3, 6, 3, 7, 8, 6, 9, 10, 5, 9, 3}
  9. Element(randomNosForX, Mod[questionCount, 100] + 1) → numX
  10. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForY, {5, 7, 2, 1, 2, 9, 1, 6, 3, 10, 4, 1, 2, 10, 6, 6, 7, 9, 7, 10, 1, 9, 10, 4, 0, 6, 0, 8, 3, 6, 4, 3, 8, 8, 3, 5, 3, 8, 7, 4, 3, 1, 2, 7, 10, 5, 9, 3, 4, 2, 6, 1, 9, 2, 7, 6, 3, 5, 3, 6, 10, 0, 2, 3, 1, 3, 8, 9, 5, 5, 6, 0, 10, 8, 4, 9, 1, 0, 5, 7, 2, 10, 6, 2, 3, 4, 2, 10, 9, 9, 3, 1, 8, 1, 0, 8, 3, 9, 1, 0}
  11. Element(randomNosForY, Mod[questionCount, 100] + 1) → numY
  12. Append(true, Sequence[If[randomNosForX(i) ≟ randomNosForX(i - 1), false, true], i, 2, 100]) → stayX
  13. Append(true, Sequence[If[randomNosForY(i) ≟ randomNosForY(i - 1), false, true], i, 2, 100]) → stayY
  14. Remove(Sequence[If[stayX(i), randomNosForX(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForXwithoutRepeat
  15. Remove(Sequence[If[stayY(i), randomNosForY(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForYwithoutRepeat
  16. Element(randomNosForXwithoutRepeat, Mod[questionCount, Length[randomNosForXwithoutRepeat]] + 1) → numXwithoutRepeat
  17. Element(randomNosForYwithoutRepeat, Mod[questionCount, Length[randomNosForYwithoutRepeat]] + 1) → numYwithoutRepeat
  18. Polygon(A, B, M, L) → q1, a_1, b, m, l
  19. Polygon(B, C, O, M) → q2, b_1, c, o, m_1
  20. Polygon(C, D, E, O) → q3, c_1, d, e, o_1
  21. Polygon(L, M, N, K) → q4, l_1, m_2, n, k
  22. Polygon(M, O, P, N) → q5, m_3, o_2, p, n_1
  23. Polygon(O, E, F, P) → q6, o_3, e_1, f, p_1
  24. Polygon(K, N, I, J) → q7, k_1, n_2, i, j
  25. Polygon(N, P, H, I) → q8, n_3, p_2, h, i_1
  26. Polygon(P, F, G, H) → q9, p_3, f_1, g, h_1
  27. Polygon(A, B, M, L) → v1, a_2, b_2, m_4, l_2
  28. Polygon(B, C, O, M) → v2, b_3, c_2, o_4, m_5
  29. Polygon(C, D, E, O) → v3, c_3, d_1, e_2, o_5
  30. Polygon(L, M, N, K) → v4, l_3, m_6, n_4, k_2
  31. Polygon(M, O, P, N) → v5, m_7, o_6, p_4, n_5
  32. Polygon(O, E, F, P) → v6, o_7, e_3, f_2, p_5
  33. Polygon(K, N, I, J) → v7, k_3, n_6, i_2, j_1
  34. Polygon(N, P, H, I) → v8, n_7, p_6, h_2, i_3
  35. Polygon(P, F, G, H) → v9, p_7, f_3, g_1, h_3
  36. CountIf(x ≠ 0, l1) → r
  37. Polygon(N_{1}, P_{1}, H_{1}, I_{1}) → q8_{1}, n_{9}, p_{9}, h_{5}, i_{5}
  38. Polygon(N_{1}, P_{1}, H_{1}, I_{1}) → vhint, n_{8}, p_{8}, h_{4}, i_{4}

AI Drawing Prompt Reference

Draw a grid of points with a rectangular boundary and several internal polygons. These polygons may represent squares and diagonals, forming a square grid with internal divisions. The points are connected to create smaller polygons, resulting in a clear and observable structure.
The prompt above was compiled from the original drawing commands and is for reference only.