Trinary Prime Logics