1到40以內:1既不是質數,也不是合數,1的因數只有1;2,3,5,7,11,13,17,19,23,29,31,37是質數,因數只有1和本身;除上述數字,其他數字為合數,因數分別有:
4:1,2,4
6:1,2,3,6
8:1,2,4,8
9:1,3,9
10:1,2,5,10
12:1,2,3,4,6,12
14:1,2,7,14
15:1,3,5,15
16:1,2,4,8,16
18:1,2,3,6,9,18
20:1,2,4,5,10,20
21:1,3,7,21
22:1,2,11,22
24:1,2,3,4,6,8,12,24
25:1,5,25
26:1,2,13,26
27:1,3,9,27
28:1,2,4,7,14,28
30:1,2,3,5,6,10,15,30
32:1,2,4,8,16,32
33:1,3,11,33
34:1,2,17,34
35:1,5,7,35
36:1,2,3,4,6,9,12,18,36
38:1,2,19,38
39:1,3,13,39
40:1,2,4,5,8,10,20,40
1到40以內:1既不是質數,也不是合數,1的因數只有1;2,3,5,7,11,13,17,19,23,29,31,37是質數,因數只有1和本身;除上述數字,其他數字為合數,因數分別有:
4:1,2,4
6:1,2,3,6
8:1,2,4,8
9:1,3,9
10:1,2,5,10
12:1,2,3,4,6,12
14:1,2,7,14
15:1,3,5,15
16:1,2,4,8,16
18:1,2,3,6,9,18
20:1,2,4,5,10,20
21:1,3,7,21
22:1,2,11,22
24:1,2,3,4,6,8,12,24
25:1,5,25
26:1,2,13,26
27:1,3,9,27
28:1,2,4,7,14,28
30:1,2,3,5,6,10,15,30
32:1,2,4,8,16,32
33:1,3,11,33
34:1,2,17,34
35:1,5,7,35
36:1,2,3,4,6,9,12,18,36
38:1,2,19,38
39:1,3,13,39
40:1,2,4,5,8,10,20,40