Ugly no..........help

not done via dp…why gives wrong ans ???

although ugly series seems correct only

Hey @hg11110000
1 2 3 4 5 6 8 9 10

Sequence will be like this
u are not considering number like 6
which is 2*3

@Kartikkhariwal1
i did consider

when i print the series its like -->
1 2 3 4 5 6 8 9 10 12 14 15 16 18 20 21 22 24 25 …

no no…

i think its wrong because 22 comes and its like 2*11

and 11 is not req
right ???
please confirm

Yeah correct @hg11110000

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.