# How to define a list that contains all primes less than x?

how can I define my own list in which I have all primes less than x?