Added logic for PrimesFragment