close the reversedprime file

fclose(fr_ptr);