Searched refs:IsPrime (Results 1 – 8 of 8) sorted by relevance
108 EXPECT_FALSE(this->table_->IsPrime(0)); in TYPED_TEST()109 EXPECT_FALSE(this->table_->IsPrime(1)); in TYPED_TEST()110 EXPECT_FALSE(this->table_->IsPrime(4)); in TYPED_TEST()116 EXPECT_TRUE(this->table_->IsPrime(2)); in TYPED_TEST()117 EXPECT_TRUE(this->table_->IsPrime(3)); in TYPED_TEST()118 EXPECT_TRUE(this->table_->IsPrime(5)); in TYPED_TEST()119 EXPECT_TRUE(this->table_->IsPrime(7)); in TYPED_TEST()180 EXPECT_TRUE(this->table_->IsPrime(2)); in TYPED_TEST_P()181 EXPECT_TRUE(this->table_->IsPrime(3)); in TYPED_TEST_P()182 EXPECT_TRUE(this->table_->IsPrime(5)); in TYPED_TEST_P()[all …]
61 virtual bool IsPrime(int n) const { in IsPrime() function in __anon5949bf7e0111::HybridPrimeTable121 EXPECT_FALSE(table_->IsPrime(-5)); in TEST_P()122 EXPECT_FALSE(table_->IsPrime(0)); in TEST_P()123 EXPECT_FALSE(table_->IsPrime(1)); in TEST_P()124 EXPECT_FALSE(table_->IsPrime(4)); in TEST_P()125 EXPECT_FALSE(table_->IsPrime(6)); in TEST_P()130 EXPECT_TRUE(table_->IsPrime(2)); in TEST_P()131 EXPECT_TRUE(table_->IsPrime(3)); in TEST_P()132 EXPECT_TRUE(table_->IsPrime(5)); in TEST_P()133 EXPECT_TRUE(table_->IsPrime(7)); in TEST_P()[all …]
119 EXPECT_FALSE(IsPrime(-1)); in TEST()120 EXPECT_FALSE(IsPrime(-2)); in TEST()121 EXPECT_FALSE(IsPrime(INT_MIN)); in TEST()126 EXPECT_FALSE(IsPrime(0)); in TEST()127 EXPECT_FALSE(IsPrime(1)); in TEST()128 EXPECT_TRUE(IsPrime(2)); in TEST()129 EXPECT_TRUE(IsPrime(3)); in TEST()134 EXPECT_FALSE(IsPrime(4)); in TEST()135 EXPECT_TRUE(IsPrime(5)); in TEST()136 EXPECT_FALSE(IsPrime(6)); in TEST()[all …]
80 EXPECT_FALSE(table_->IsPrime(-5)); in TEST_P()81 EXPECT_FALSE(table_->IsPrime(0)); in TEST_P()82 EXPECT_FALSE(table_->IsPrime(1)); in TEST_P()83 EXPECT_FALSE(table_->IsPrime(4)); in TEST_P()84 EXPECT_FALSE(table_->IsPrime(6)); in TEST_P()89 EXPECT_TRUE(table_->IsPrime(2)); in TEST_P()90 EXPECT_TRUE(table_->IsPrime(3)); in TEST_P()91 EXPECT_TRUE(table_->IsPrime(5)); in TEST_P()92 EXPECT_TRUE(table_->IsPrime(7)); in TEST_P()93 EXPECT_TRUE(table_->IsPrime(11)); in TEST_P()[all …]
119 EXPECT_FALSE(IsPrime(-1)); in TEST_F()120 EXPECT_FALSE(IsPrime(-2)); in TEST_F()121 EXPECT_FALSE(IsPrime(INT_MIN)); in TEST_F()124 EXPECT_FALSE(IsPrime(0)); in TEST_F()125 EXPECT_FALSE(IsPrime(1)); in TEST_F()126 EXPECT_TRUE(IsPrime(2)); in TEST_F()127 EXPECT_TRUE(IsPrime(3)); in TEST_F()130 EXPECT_FALSE(IsPrime(4)); in TEST_F()131 EXPECT_TRUE(IsPrime(5)); in TEST_F()132 EXPECT_FALSE(IsPrime(6)); in TEST_F()[all …]
47 virtual bool IsPrime(int n) const = 0;57 virtual bool IsPrime(int n) const { in IsPrime() function70 if (IsPrime(n)) return n; in GetNextPrime()88 virtual bool IsPrime(int n) const { in IsPrime() function
39 bool IsPrime(int n);
45 bool IsPrime(int n) { in IsPrime() function