寻找相邻质数——质数识别与数感训练

寻找相邻质数——质数识别与数感训练
几何画板及绘图内容加载中,请稍等……
2021-09-20 14:08
所属专题 Primzahlen
本范例是一个质数识别与查找的交互式练习。学生在 GeoGebra 环境中通过随机生成的数字判断其是否为质数,并寻找该质数在质数序列中的相邻质数。核心数学概念包括质数(素数)的定义、因数分解、数感培养以及因数和倍数的概念。构造上利用 IsPrime 命令判断质数属性,DivisorsList 获取因数列表,Shuffle 和 Element 实现随机质数选取,KeepIf 筛选符合条件的质数,并通过 Textfield 和验证机制实现学生输入与自动评判。适合 5-6 年级学生,用于帮助学生理解并应用质数的概念,培养数感与逻辑推理能力。

GeoGebra 命令及参数

  1. Element(m, 2, n) → randn
  2. KeepIf(x < randn, primlist) → listVor
  3. Last(listVor) → l1
  4. KeepIf(x > randn, primlist) → listNach
  5. Textfield(aInput) → InputBox1
  6. Textfield(bInput) → InputBox2
  7. Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, ptopleftcornerfeedback, ptoprightcornerfeedback, pbottomrightcornerfeedback, pbottomleftcornerfeedback
  8. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForX, {8, 9, 7, 5, 5, 4, 8, 5, 4, 8, 9, 6, 3, 6, 9, 1, 0, 0, 9, 9, 2, 0, 6, 9, 0, 6, 2, 6, 0, 8, 2, 8, 2, 9, 2, 8, 9, 7, 4, 5, 0, 2, 3, 5, 3, 9, 5, 6, 10, 4, 4, 0, 7, 6, 4, 1, 8, 0, 1, 2, 5, 6, 0, 7, 6, 7, 10, 8, 9, 3, 9, 6, 8, 4, 0, 1, 1, 5, 9, 8, 1, 4, 0, 1, 5, 3, 0, 8, 10, 2, 1, 0, 5, 4, 2, 3, 3, 8, 1, 5}
  9. Element(randomNosForX, Mod[questionCount, 100] + 1) → numX
  10. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForY, {9, 3, 8, 1, 4, 10, 9, 1, 2, 1, 9, 6, 4, 9, 4, 1, 4, 10, 8, 4, 10, 6, 8, 8, 8, 10, 8, 1, 5, 7, 0, 1, 10, 6, 10, 5, 1, 5, 7, 1, 6, 9, 8, 8, 1, 7, 6, 10, 7, 8, 9, 0, 3, 3, 3, 3, 9, 9, 4, 1, 1, 5, 5, 8, 0, 5, 3, 8, 8, 6, 1, 0, 10, 9, 0, 8, 9, 9, 10, 6, 4, 0, 7, 7, 5, 5, 4, 8, 8, 9, 5, 4, 3, 3, 6, 1, 5, 10, 2, 1}
  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. Point(Circle[A, Segment[PtopLeftCornerFeedback, PtopRightCornerFeedback]]) → B
  19. Polygon(A, B, C, D) → q1, a, b, c, d
  20. DivisorsList(aInput) → dva
  21. Factors(aInput) →
  22. DivisorsList(bInput) → dvb
  23. Factors(bInput) →
  24. IsPrime(89) → IsPrime

AI 绘图提示语参考

描述一个素数序列的图形,包含随机生成的数字,每个数字旁边用不同颜色标记是否为素数,并显示其相邻的素数。图形从左到右排列数字,素数用红色突出显示,非素数用灰色。用户可以拖动滑块改变随机数序列。图形底部显示当前数字的素数判断结果和相邻素数。整体布局简洁,类似数轴。
以上提示语为根据原始绘图命令整理而来,仅供参考。