階乘質數

階乘質數係同某個階乘相鄰嘅質數，即係佢係某個階乘嘅加一或者減一。

最細嘅幾個階乘質數係：
2(0!+1或1!+1), 3(2!+1), 5(3!-1), 7(3!+1), 23(4!-1), 719(6!-1), 5039(7!-1), 39916801(11!+1), 479001599(12!-1), 87178291199(14!-1), ...

n!+1係質數嘅n有：
0, 1, 2, 3, 11, 27, 37, 41, 73, 77, 116, 154, 320, 340, 399, 427, 872, 1477, 6380, 26951, 110059, 150209, 288459, 308084, ...

n!-1係質數嘅n有：
3, 4, 6, 7, 12, 14, 30, 32, 33, 38, 94, 166, 324, 379, 469, 546, 974, 1963, 3507, 3610, 6917, 21480, 34790, 94550, 103040, 147855, 208003, ...

Factorial
階乘與二項式主題