adding tateti and prime number. Tested in java, not tested in primer