to print prime value