質數&因數

2007-07-12 1:59 am
列舉1~150的因數!

Thx!

回答 (2)

2007-07-12 2:11 am
✔ 最佳答案
4,6,8,9,10,12,14,15,16,18,20,21,22,24,25,26,27,28,30,32,33,34,35,36,38,39,40,42,44,45,46,48,49,50,52,54,55,56,58,60,62,63,64,65,66,68,69,70,72,74,75,76,77,78,80,81,82,84,85,86,88,90,92,93,94,95,96,98,99,100,102,104,105,106,108,110,112,113,114,115,116,118,120,121,122,124,125,126,128,130,132,134,134,135,136,138,140,142,143,144,145,146,148,150.
2007-07-12 3:16 am
p = 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149 是 1 到 150 之間的質數。
它們的因數都只有 1 和 p 。

其他的數的因數,都可以利用質因數連乘式來計算出來,因為太多了,告訴您方法就算了。

2007-07-11 19:17:25 補充:
因數不等於合成數


收錄日期: 2021-04-13 00:49:08
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20070711000051KK03363

檢視 Wayback Machine 備份