Question: factors command

Hi Mapleprimes,

I wrote some quick maple code -

for a from 1 to 10 do
if isprime(a)=false then print(ifactor(a)) else print('1',a) end do;
end do

I want to use the factors command to reproduce oeis.org/A027750/

Can anyone help me with this?

Regards,

Matt

 

Please Wait...