1. Introduction and basic definitions
The algebraic properties of rings have attracted many authors to contribute to this field [13-20], where ideals, elements, unit, and homomorphism are the basis of these studies. For example, we mention the rings that all of their ideals are prime or semi-prime [1-3], and the rings that all of their right ideals are weakly prime or generalized to the right [4-8]. Ternary rings were defined by Lister, with many advances about them, see [9-11]. In this work, we try to find necessary and sufficient conditions for right ideals in ternary ring to be prime. First we recall some basic definitions: Definition: Let 𝑇≠∅ be a set with two binary and ternary operations: (+): 𝑇× 𝑇→𝑇 and (. ): 𝑇× 𝑇× 𝑇→𝑇. (𝑇, +, . ) Is called ternary ring if: 1). (𝑇, +) is abelian group.

For all 𝑎, 𝑏, 𝑐, 𝑑, 𝑒∈𝑇. Definition. Let 𝑇 is a ternary ring, then the zero of 𝑇 (0) is defined with the following properties. 0 + 𝑎= 𝑎 , 0𝑎𝑏= 𝑎0𝑏= 𝑎𝑏0 = 0; ∀𝑎, 𝑏∈𝑇. Definition. Let 𝑇 be a ternary ring, if there exists 1 ∈𝑇 such that 1.1. 𝑎= 1. 𝑎. 1 = 𝑎. 1.1 = 𝑎 for all 𝑎∈𝑇, then 1 is called the unity of 𝑇, and 𝑇 is called ternary ring of unity. Definition. Let 𝑇 be a ternary ring , and (𝐼, +) is a subgroup of (𝑇, +), we say: 1). 𝐼 is left ideal of 𝑇 if: 𝑥. 𝑦. 𝑖∈𝐼 ; ∀𝑖∈𝐼 , 𝑥, 𝑦∈𝑇. 2). 𝐼 is right ideal of 𝑇 if: 𝑖. 𝑥. 𝑦∈𝐼 ; ∀𝑖∈𝐼 , 𝑥, 𝑦∈𝑇. 3). 𝐼 is called side ideal of 𝑇 𝑖𝑓:
𝑥. 𝑖. 𝑦∈𝐼 ; ∀𝑖∈𝐼 , 𝑥, 𝑦∈𝑇. 4). 𝐼 is called two-side ideal of 𝑇 if 𝐼 is right and left of 𝑇. 5). 𝐼 is called ideal of 𝑇 if it is right, left, and side ideal. Definition. Let 𝑃 be a proper right ideal of 𝑇, then 𝑃 is called semi-prime right ideal if: 𝐼⊆𝑃 implies 𝑃⊆𝐼. 𝑇 is called ternary right semi-prime if {0} is semi-prime right ideal. 𝑇 is called ternary fully right semi-prime if all proper right ideals are semi prime. Definition. Let 𝑃 be a proper right ideal of 𝑇, 𝑃 is called right prime ideal if it has the following property: If 𝐼, 𝐽, 𝐾 are right ideals of 𝑇 with 𝐼. 𝐽. 𝐾⊆𝑃, then 𝐼⊆𝑃, 𝐽⊆𝑃, 𝐾⊆𝑃. 𝑇 is called ternary right prime ring if {0} is right prime ideal of 𝑇. 𝑇 is called fully right prime ring if all of its proper right ideals are prime. Main results. Theorem. Let 𝑃 be a proper right ideal of 𝑇, then: 𝑃 is semi-prime nilpotent right ideal if and only if 𝑃 is prime eight ideal. Proof. The first implementation is easy. For the converse, we assume that 𝐼, 𝐽, 𝐾 are right ideals of 𝑇 with 𝐼. 𝐽. 𝐾⊆𝑃, then there exists an odd natural number 𝑛 such that 𝐼𝑛⊆𝑃 or 𝐽𝑛⊆𝑃 or 𝐾𝑛⊆𝑃. Since 𝑃 is right semi-prime ideal, we get that: 𝐼⊆𝑃 or 𝐽⊆𝑃 or 𝐾⊆𝑃, thus 𝑃 is prime. Remark. 1). If 𝑇 is fully prime right, then it weakly prime from the right. 2). 𝑇 is nilpotent and fully semi prime from the right equivalents to that 𝑇 is fully prime from the right. Theorem. Let 𝑇 be a prime right ternary ring, and 𝑃 is right ideal of 𝑇, then 𝑃 is weakly prime if and only if 𝑃 is prime. Proof. The first implementation holds directly from the previous remark. For the converse, we suppose that 𝐼, 𝐽, 𝐾 are right ideals of 𝑇 with 𝐼. 𝐽. 𝐾⊆𝑃. If 𝐼. 𝐽. 𝐾≠{0}, then 𝐼⊆𝑃 or 𝐽⊆𝑃 or 𝐾⊆𝑃 a a result of the weakly primary of 𝑃, thus 𝑃 is prime. If 𝐼. 𝐽. 𝐾= {0}, since 𝑇 is prime from the right, we get that 𝐼= {0} or 𝐽= {0} or 𝐾= {0}, thus 𝐼⊆𝑃 or 𝐽⊆𝑃 or 𝐾⊆𝑃, thus 𝑃 is prime. Theorem. Let 𝑇 be an idempotent fully right ternary ring, and its set of right ideals is totally ordered, then 𝑇 T is fully prime from the right. Proof. Let 𝑃 be a proper right ideal of 𝑇, and let that 𝐼, 𝐽, 𝐾 be right ideals of 𝑇 with 𝐼. 𝐽. 𝐾⊆𝑃, from the totally ordering property, we get: 𝐼⊆𝐽 or 𝐽⊆𝐼, hence 𝐼⊆𝐾 or 𝐾⊆𝐼. For 𝐼⊆𝐽 with 𝐼⊆𝐾, we can write: 𝐼= 𝐼. 𝐼. 𝐼⊆𝐼. 𝐽. 𝐾, thus 𝐼⊆𝐼. 𝐽. 𝐾⊆𝑃 and 𝐼⊆𝑃. For 𝐽⊆𝐼 with 𝐼⊆𝐾, then: 𝐽= 𝐽. 𝐽. 𝐽⊆𝐼. 𝐽. 𝐼⊆𝐼. 𝐽. 𝐾⊆𝑃. For 𝐼⊆𝐽 with 𝐾⊆𝐼, then 𝐾⊆𝐼⊆𝐽, thus 𝐾= 𝐾. 𝐾. 𝐾⊆𝐼. 𝐽. 𝐾⊆𝑃. For 𝐾⊆𝐽⊆𝐼, we have: 𝐾= 𝐾. 𝐾. 𝐾⊆𝐼. 𝐽. 𝐾⊆𝑃 This means that 𝑃 is prime right ideal of 𝑇, and the proof is complete. Theorem. If 𝑇 primitive ternary ring fully generalized to the ring, then its set of semi-prime ideal I totally ordered. Proof. Let 𝑃1, 𝑃2 be two semi-prime ideals of 𝑇, then 𝑃1 ∩𝑃2is semi-prime ideal of 𝑇. We have 𝑃1. 𝑃2. 𝑃2 ⊆𝑃1 ∩𝑃2. And since 𝑃1 ∩𝑃2 is generalized to the right, we get: 𝑃1 ⊆𝑃2 or 𝑃2 ⊆𝑃1, hence the set of semi-prime ideals is totally ordered. Theorem. Let 𝑃 be a proper right ideals of 𝑇 such that 𝐼. 𝐽. 𝐾⊆𝑃. We put 𝐻= 𝐼∩𝐽∩𝐾, then 𝐻 is right ideal of 𝑇 with 𝐻3 ⊆𝑃, that is because:
𝐻3 = ℎ. 𝐻. 𝐻= (𝐼∩𝐽∩𝐾)(𝐼∩𝐽∩𝐾)(𝐼∩𝐽∩𝐾) ⊆𝐼. 𝐽. 𝐾⊆𝑃. According to the assumption, 𝑃 is semi-prime right ideal, then 𝐻⊆𝑃 and 𝐼⊆𝑃 or 𝐽⊆𝑃 or 𝐾⊆𝑃 from the irreducibility of 𝑃, hence 𝑃 is prime right ideal. Theorem. Let 𝑇 be a sub-commutative ternary ring, then: 1). 𝑇 is fully prime right if and only if 𝑇 is fully idempotent from the right and its set of right ideals is totally ordered. 2). 𝑇 I fully prime right if and only if 𝑇 is fully right non-irreducible and fully semi-prime. Proof. 1). The first implementations is clear. Assume that 𝑇 is fully prime right ternary ring, then 𝑇 I fully semi-prime from the right, which implies that 𝑇 is fully idempotent from the right, and primitive fully generalized to the right, hence if 𝑃1, 𝑃2 are two semi-prime right ideals of 𝑃1, 𝑃2, this means that: 𝑃1. 𝑃2. 𝑃3 ⊆𝑇𝑇𝑃2 ⊆𝑃2𝑇𝑇⊆𝑃2, and 𝑃1. 𝑃2. 𝑃3 ⊆𝑃1𝑇𝑇⊆𝑃1, then 𝑃1. 𝑃2. 𝑃3 ⊆𝑃1 ∩𝑃2, hence 𝑃1 ⊆𝑃1 ∩𝑃2 ⊆𝑃2 or there exists an odd natural number 𝑛 such that 𝑃2 𝑛⊆𝑃1 ∩𝑃2 ⊆𝑃1 ⟹𝑃2 ⊆𝑃1. The previous argument gives the following result. Semi-prime ideals of 𝑇 is totally ordered. 2). The first implementation is clear. For the converse, assume that 𝑃 is right proper ideal of 𝑇. According to the assumption, we get that 𝑃 is prime right ideal. Now, let 𝐼, 𝐽, 𝐾 be right ideals of 𝑇 such that 𝐼∩𝐽∩𝐾⊆𝑃. Since 𝑃 is fully prime right of 𝑇, then its set of right ideals is totally ordered, which implies that: 𝐼⊆𝐽 or 𝐽⊆𝐼, 𝐼⊆𝐾 or 𝐾⊆𝐼,. If 𝐼⊆𝐾 and 𝐼⊆𝐽, then 𝐼⊆𝐼∩𝐽∩𝐾⊆𝑃. If 𝐼⊆𝐾 and 𝐽⊆𝐼, then 𝐽⊆𝐼⊆𝐾, thus 𝐽⊆𝐼∩𝐽∩𝐾⊆𝑃. If 𝐼⊆𝐽 and 𝐾⊆𝐼, then 𝐾⊆𝐼⊆𝐽, thus 𝐾⊆𝐼∩𝐽∩𝐾⊆𝑃. Now, for 𝐽⊆𝐼 and 𝐾⊆𝐼, we have two cases: If 𝐽⊆𝐾, then 𝐽⊆𝐼∩𝐽∩𝐾⊆𝑃. If 𝐾⊆𝐽, then 𝐾⊆𝐼∩𝐽∩𝐾⊆𝑃. Hence 𝐼⊆𝑃 or 𝐽⊆𝑃 or 𝐾⊆𝑃, and 𝑃 is non-irreducible right ideal, which means that 𝑇 is fully non-irreducible from the right.