Tripadvisor Interview Question

Implement a method that prints prime number from 1 to the passed number.