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.

A359300 a(n) = (distance from n to nearest prime >= n) - (distance from n to nearest prime <= n).

Table of values

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

List of values

[0, 0, 0, 0, 0, 0, 2, 0, -2, 0, 0, 0, 2, 0, -2, 0, 0, 0, 2, 0, -2, 0, 4, 2, 0, -2, -4, 0, 0, 0, 4, 2, 0, -2, -4, 0, 2, 0, -2, 0, 0, 0, 2, 0, -2, 0, 4, 2, 0, -2, -4, 0, 4, 2, 0, -2, -4, 0, 0, 0, 4, 2, 0, -2, -4, 0, 2, 0, -2, 0, 0, 0, 4, 2, 0, -2, -4, 0, 2, 0]