Pergunta de entrevista da empresa Formulatrix

Q: They asked me to write a code that prints all the prime numbers from 1-100 by using Sqrt(num) function and using only 1 loop.