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.

A051698 Closest prime to n that is different from n (break ties by taking the smaller prime).

Table of values

n a(n)
0 2
1 2
2 3
3 2
4 3
5 3
6 5
7 5
8 7
9 7
10 11
11 13
12 11
13 11
14 13
15 13
16 17
17 19
18 17
19 17
20 19
21 19
22 23
23 19
24 23
25 23
26 23
27 29
28 29
29 31
30 29
31 29
32 31
33 31
34 31
35 37
36 37
37 41
38 37
39 37
40 41
41 43
42 41
43 41
44 43
45 43
46 47
47 43
48 47
49 47
50 47
51 53
52 53
53 47
54 53
55 53
56 53
57 59
58 59
59 61
60 59
61 59
62 61
63 61
64 61
65 67
66 67
67 71
68 67
69 67
70 71
71 73

List of values

[2, 2, 3, 2, 3, 3, 5, 5, 7, 7, 11, 13, 11, 11, 13, 13, 17, 19, 17, 17, 19, 19, 23, 19, 23, 23, 23, 29, 29, 31, 29, 29, 31, 31, 31, 37, 37, 41, 37, 37, 41, 43, 41, 41, 43, 43, 47, 43, 47, 47, 47, 53, 53, 47, 53, 53, 53, 59, 59, 61, 59, 59, 61, 61, 61, 67, 67, 71, 67, 67, 71, 73]