add primetable and hashtable