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.

A175851 a(n) = 1 for noncomposite n, a(n) = n - previousprime(n) + 1 for composite n.

Table of values

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

List of values

[1, 1, 1, 2, 1, 2, 1, 2, 3, 4, 1, 2, 1, 2, 3, 4, 1, 2, 1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 1, 2, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 1, 2, 1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 1, 2, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 1, 2, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4]