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.

A330154 Each term is visited according to the rule: move left (resp. right) a(n) places if a(n) is prime (resp. not prime), starting at n = 1: lexicographically earliest such sequence of distinct positive integers.

Table of values

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

List of values

[1, 4, 6, 8, 2, 9, 3, 10, 12, 5, 14, 15, 16, 7, 18, 20, 21, 22, 11, 24, 25, 26, 13, 27, 28, 30, 32, 17, 33, 34, 35, 19, 36, 38, 39, 40, 23, 42, 44, 45, 46, 48, 49, 50, 29, 51, 52, 31, 54, 55, 56, 57, 58, 60, 62, 37, 63, 64, 65, 66, 41, 68, 69, 70, 43, 72, 74, 75, 76, 47, 77]