started on prime functions