Help me in this problem getting wa

this is my solution for that.

1 Like

I get “Access Denied” when I click on this link.

1 Like

access denied!

1 Like

sorry i don’t know why that is happening

Looks like all the solutions are hidden, which sometimes happens for Practice Problems.

@admin - are the solutions for deliberately non-public?


ok i my approach is print k even numbers since they are non co-primes as asked in the question.and if k>n/2 then “-1”

please tell me if my approach is correct

if k=1 and n=1 then what are you printing?


@sebastian i’m printing 2 and it is wrong got it.