add secound for loop to check to see if diveder was prime