cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A245715 Least number k > 0 such that n - k! is prime, or 0 if no such k exists.

Table of values

n a(n)
1 0
2 0
3 1
4 1
5 2
6 1
7 2
8 1
9 2
10 0
11 3
12 1
13 2
14 1
15 2
16 0
17 3
18 1
19 2
20 1
21 2
22 0
23 3
24 1
25 2
26 4
27 4
28 0
29 3
30 1
31 2
32 1
33 2
34 0
35 3
36 0
37 3
38 1
39 2
40 0
41 4
42 1
43 2
44 1
45 2
46 0
47 3
48 1
49 2
50 0
51 0
52 0
53 3
54 1
55 2
56 0
57 0
58 0
59 3
60 1
61 2
62 1
63 2
64 0
65 3
66 0
67 3
68 1
69 2
70 0
71 4
72 1
73 2
74 1
75 2
76 0
77 3
78 0
79 3
80 1
81 2
82 0
83 4
84 1
85 2
86 0
87 0
88 0
89 3
90 1
91 2
92 0
93 0
94 0
95 3
96 0
97 4
98 1
99 2
100 0
101 0
102 1
103 2
104 1
105 2
106 0
107 3
108 1
109 2
110 1
111 2
112 0
113 3
114 1
115 2
116 0
117 0
118 0
119 3

List of values

[0, 0, 1, 1, 2, 1, 2, 1, 2, 0, 3, 1, 2, 1, 2, 0, 3, 1, 2, 1, 2, 0, 3, 1, 2, 4, 4, 0, 3, 1, 2, 1, 2, 0, 3, 0, 3, 1, 2, 0, 4, 1, 2, 1, 2, 0, 3, 1, 2, 0, 0, 0, 3, 1, 2, 0, 0, 0, 3, 1, 2, 1, 2, 0, 3, 0, 3, 1, 2, 0, 4, 1, 2, 1, 2, 0, 3, 0, 3, 1, 2, 0, 4, 1, 2, 0, 0, 0, 3, 1, 2, 0, 0, 0, 3, 0, 4, 1, 2, 0, 0, 1, 2, 1, 2, 0, 3, 1, 2, 1, 2, 0, 3, 1, 2, 0, 0, 0, 3]