added Prime function