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.

A051702 Distance from n-th prime to closest prime.

Table of values

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

List of values

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