Playing_with_divisors_is_fun

here is the link of my code


can u tell me what is the error in the code and how should i rectify it,

@ankitkumarmbill1 thought it was a c++ code dont know much about python but maybe try removing #before temp and space between 1000000007 and mod=

this is the link to the code written in c++ check this one https://ide.codingblocks.com/s/264527

I think there is some mistake in your logic , the correct is this one have done it only?


reference code (https://ide.codingblocks.com/s/266160)