Primality testing through algebraic groups

We propose a deterministic primality test based on a section of a group scheme. Pépin’s test and the tests of Lucas–Lehmer type are special cases of our construction, provided the group scheme is taken to be the multiplicative group and the Waterhouse–Weisfeiler group scheme, respectively. Besides, we suggest a test involving formal completions of these schemes.