Lines Matching defs:IsPrime
62 virtual bool IsPrime(int n) const {
64 return precalc_impl_->IsPrime(n);
66 return on_the_fly_impl_->IsPrime(n);
122 EXPECT_FALSE(table_->IsPrime(-5));
123 EXPECT_FALSE(table_->IsPrime(0));
124 EXPECT_FALSE(table_->IsPrime(1));
125 EXPECT_FALSE(table_->IsPrime(4));
126 EXPECT_FALSE(table_->IsPrime(6));
127 EXPECT_FALSE(table_->IsPrime(100));
131 EXPECT_TRUE(table_->IsPrime(2));
132 EXPECT_TRUE(table_->IsPrime(3));
133 EXPECT_TRUE(table_->IsPrime(5));
134 EXPECT_TRUE(table_->IsPrime(7));
135 EXPECT_TRUE(table_->IsPrime(11));
136 EXPECT_TRUE(table_->IsPrime(131));