add classes for prime numbers and fractions