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.

A345012 Lexicographically earliest sequence of nonnegative terms forming a clockwise square spiral when nothing else is read except the nonprime/prime nature of the digits (see the Comments section).

Table of values

n a(n)
1 0
2 2
3 3
4 1
5 5
6 4
7 7
8 6
9 8
10 20
11 9
12 21
13 10
14 24
15 11
16 26
17 14
18 12
19 16
20 18
21 28
22 19
23 40
24 29
25 41
26 44
27 30
28 46
29 48
30 13
31 49
32 60
33 61
34 31
35 64
36 66
37 68
38 34
39 69
40 80
41 81
42 36
43 84
44 86
45 88
46 15
47 89
48 90
49 91
50 94
51 38
52 96
53 98
54 99
55 102
56 100
57 101
58 104
59 39
60 106
61 108
62 109
63 50
64 110
65 111
66 114
67 51
68 116
69 118
70 119
71 17
72 140
73 141
74 144
75 103

List of values

[0, 2, 3, 1, 5, 4, 7, 6, 8, 20, 9, 21, 10, 24, 11, 26, 14, 12, 16, 18, 28, 19, 40, 29, 41, 44, 30, 46, 48, 13, 49, 60, 61, 31, 64, 66, 68, 34, 69, 80, 81, 36, 84, 86, 88, 15, 89, 90, 91, 94, 38, 96, 98, 99, 102, 100, 101, 104, 39, 106, 108, 109, 50, 110, 111, 114, 51, 116, 118, 119, 17, 140, 141, 144, 103]