added prime checking functionality