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.

A166597 Let p = largest prime <= n, with p(0)=p(1)=0, and let q = smallest prime > n; then a(n) = q-p.

Table of values

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

List of values

[2, 2, 1, 2, 2, 2, 2, 4, 4, 4, 4, 2, 2, 4, 4, 4, 4, 2, 2, 4, 4, 4, 4, 6, 6, 6, 6, 6, 6, 2, 2, 6, 6, 6, 6, 6, 6, 4, 4, 4, 4, 2, 2, 4, 4, 4, 4, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 2, 2, 6, 6, 6, 6, 6, 6, 4, 4, 4, 4, 2, 2, 6, 6, 6, 6, 6, 6, 4, 4, 4, 4, 6, 6, 6, 6, 6, 6, 8, 8, 8, 8, 8, 8, 8, 8, 4, 4, 4, 4, 2, 2, 4, 4]