get prime function add