sir why this condition i mnot able to understand this condition p*p<=m
Sir doubt in if condition
@tejasddongare
p*p<m is equivalent to p<sqrt(m). This means that in order to find prime numbers you need not iterate loop till p<m. Iterating till p<sqrt(m) will work fine. This will save time.