Can you prove or disprove the claims given below?
Inspired by generalization of Lucas-Lehmer test I have formulated the following claims:
Claim 1 Let $M_p=2^p-1$ where $p$ is an odd prime number , let $S_k=3S_{k-1}-5S_{k-2}+3S_{k-3}$ with $S_0=0 , S_1=1 , S_2=2$ , then $$M_p \text{ is prime iff } \operatorname{GCD}\left(S_{(M_p+1)/2},M_p\right)=1 \text{ and } S_{M_p+1} \equiv 0 \pmod{M_p}$$
You can run this test here.
Claim 2 Let $F_n=2^{2^n}+1$ where $n>1$ , let $S_k=3S_{k-1}-5S_{k-2}+3S_{k-3}$ with $S_0=0 , S_1=1 , S_2=2$ , then $$F_n \text{ is prime iff } \operatorname{GCD}\left(S_{(F_n-1)/2},F_n\right)=1 \text{ and } S_{F_n-1} \equiv 0 \pmod{F_n}$$
You can run this test here.
Note that I verified these claims only for small values of $M_p$ and $F_n$ because computation of $\operatorname{GCD}$ takes a lot of time.