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.

A368241 a(n) = n - prevprime(n) if n is prime, n + primepi(n) otherwise; a(2) = 2.

Table of values

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

List of values

[1, 2, 1, 6, 2, 9, 2, 12, 13, 14, 4, 17, 2, 20, 21, 22, 4, 25, 2, 28, 29, 30, 4, 33, 34, 35, 36, 37, 6, 40, 2, 43, 44, 45, 46, 47, 6, 50, 51, 52, 4, 55, 2, 58, 59, 60, 4, 63, 64, 65, 66, 67, 6, 70, 71, 72, 73, 74, 6, 77, 2, 80, 81, 82, 83, 84, 6, 87, 88, 89, 4, 92, 2, 95, 96]