Write the set in set builder form.
In set builder method, we define a set by stating the properties satisfied by the elements.
If we consider the set , the elements given are , which are prime numbers up to . They have only two factors , i.e., and the number itself.
Hence in set builder form, the given set will be represented as