MODBasic Poland Difficult

Problem - 174

Find all prime number $p$ such that both $(4p^2+1)$ and $(6p^2+1)$ are prime numbers.

The solution for this problem is available for $0.99. You can also purchase a pass for all available solutions for$99.