public Triplet(TFirst first, TSecond second, TThird third, string[] propertyNames) : base(first, second, propertyNames) { Third = third; Collection[UniqueIdentifier].Add(Third.ToString()); KeyIndex = 2; }
public bool IsThreePrimeTuple() { return /*IsTwoPrimeTuple() &&*/ (Primes.IsPrimeInLine(Int64.Parse(First.ToString() + Third.ToString())) && Primes.IsPrimeInLine(Int64.Parse(Second.ToString() + Third.ToString())) && Primes.IsPrimeInLine(Int64.Parse(Third.ToString() + First.ToString())) && Primes.IsPrimeInLine(Int64.Parse(Third.ToString() + Second.ToString()))); }
public bool IsFivePrimeTuple() { return /*IsFourPrimeTuple() &&*/ (Primes.IsPrimeInLine(Int64.Parse(First.ToString() + Fifth.ToString())) && Primes.IsPrimeInLine(Int64.Parse(Second.ToString() + Fifth.ToString())) && Primes.IsPrimeInLine(Int64.Parse(Third.ToString() + Fifth.ToString())) && Primes.IsPrimeInLine(Int64.Parse(Fourth.ToString() + Fifth.ToString())) && Primes.IsPrimeInLine(Int64.Parse(Fifth.ToString() + First.ToString())) && Primes.IsPrimeInLine(Int64.Parse(Fifth.ToString() + Second.ToString())) && Primes.IsPrimeInLine(Int64.Parse(Fifth.ToString() + Third.ToString())) && Primes.IsPrimeInLine(Int64.Parse(Fifth.ToString() + Fourth.ToString()))); }
public string ToString(IFormatProvider provider) => $"({First.ToString(provider)}," + $"{Second.ToString(provider)},{Third.ToString(provider)})";
public override string ToString() { return(String.Format("F({0},{1},{2})", First.ToString(), Second.ToString(), Third.ToString())); }