Accenture Interview Question

How would you write a method to select all prime numbers from 1-100