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.

A074170 Start with 1, add the next number if one gets a prime then add the next number else subtract the next...

Table of values

n a(n)
1 1
2 3
3 6
4 2
5 7
6 13
7 20
8 12
9 3
10 13
11 24
12 12
13 -1
14 -15
15 -30
16 -46
17 -63
18 -81
19 -100
20 -120
21 -141
22 -163
23 -140
24 -164
25 -189
26 -215
27 -242
28 -270
29 -299
30 -329
31 -360
32 -392
33 -425
34 -459
35 -494
36 -530
37 -567
38 -605
39 -644
40 -684
41 -725
42 -767
43 -810
44 -854
45 -899
46 -945
47 -992
48 -1040
49 -1089
50 -1139
51 -1190
52 -1242
53 -1295
54 -1349
55 -1404
56 -1460

List of values

[1, 3, 6, 2, 7, 13, 20, 12, 3, 13, 24, 12, -1, -15, -30, -46, -63, -81, -100, -120, -141, -163, -140, -164, -189, -215, -242, -270, -299, -329, -360, -392, -425, -459, -494, -530, -567, -605, -644, -684, -725, -767, -810, -854, -899, -945, -992, -1040, -1089, -1139, -1190, -1242, -1295, -1349, -1404, -1460]