Jump to content

Pairs with common factors: Difference between revisions

m
Line 110:
foreach(p -> print(rpad(p[2], 5), p[1] % 20 == 0 ? "\n" : ""), pairs(map(pcf, 1:100)))
 
for expo in 01:6
println("The ", format(10^expo, commas = true), "th pair with common factors count is ",
format(pcf(10^expo), commas = true))
Line 121:
669 700 726 757 773 818 818 853 877 922 922 969 969 1006 1040 1079 1095 1148 1148 1195
1221 1262 1262 1321 1341 1384 1414 1461 1461 1526 1544 1591 1623 1670 1692 1755 1755 1810 1848 1907
The 1th pair with common factors count is 0
The 10th pair with common factors count is 14
The 100th pair with common factors count is 1,907
4,105

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.