We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b18e764 commit 90b0cc8Copy full SHA for 90b0cc8
db/a-schema.sql
@@ -5,9 +5,9 @@ CREATE TYPE hole AS ENUM (
5
'12-days-of-christmas', '99-bottles-of-beer', 'abundant-numbers',
6
'arabic-to-roman', 'brainfuck', 'christmas-trees', 'css-colors', 'cubes',
7
'diamonds', 'divisors', 'emirp-numbers', 'evil-numbers', 'fibonacci',
8
- 'fizz-buzz', 'happy-numbers', 'leap-years', 'lucky-tickets',
9
- 'morse-decoder', 'morse-encoder', 'niven-numbers', 'odious-numbers',
10
- 'ordinal-numbers', 'pangram-grep', 'pascals-triangle',
+ 'fizz-buzz', 'happy-numbers', 'leap-years', 'leyland-numbers',
+ 'lucky-tickets', 'morse-decoder', 'morse-encoder', 'niven-numbers',
+ 'odious-numbers', 'ordinal-numbers', 'pangram-grep', 'pascals-triangle',
11
'pernicious-numbers', 'poker', 'prime-numbers', 'quine',
12
'rock-paper-scissors-spock-lizard', 'roman-to-arabic', 'rule-110',
13
'seven-segment', 'sierpiński-triangle', 'spelling-numbers', 'sudoku',
hole/answers.go
@@ -1184,6 +1184,113 @@ Buzz`,
1184
2392
1185
2396
1186
2400`,
1187
+ "leyland-numbers": `8
1188
+17
1189
+32
1190
+54
1191
+57
1192
+100
1193
+145
1194
+177
1195
+320
1196
+368
1197
+512
1198
+593
1199
+945
1200
+1124
1201
+1649
1202
+2169
1203
+2530
1204
+4240
1205
+5392
1206
+6250
1207
+7073
1208
+8361
1209
+16580
1210
+18785
1211
+20412
1212
+23401
1213
+32993
1214
+60049
1215
+65792
1216
+69632
1217
+93312
1218
+94932
1219
+131361
1220
+178478
1221
+262468
1222
+268705
1223
+397585
1224
+423393
1225
+524649
1226
+533169
1227
+1048976
1228
+1058576
1229
+1596520
1230
+1647086
1231
+1941760
1232
+2012174
1233
+2097593
1234
+4194788
1235
+4208945
1236
+4785713
1237
+7861953
1238
+8389137
1239
+9865625
1240
+10609137
1241
+14352282
1242
+16777792
1243
+16797952
1244
+33554432
1245
+33555057
1246
+43050817
1247
+45136576
1248
+48989176
1249
+61466176
1250
+67109540
1251
+67137425
1252
+129145076
1253
+134218457
1254
+177264449
1255
+244389457
1256
+268436240
1257
+268473872
1258
+292475249
1259
+364568617
1260
+387426321
1261
+536871753
1262
+774840978
1263
+1073742724
1264
+1073792449
1265
+1162268326
1266
+1173741824
1267
+1221074418
1268
+1996813914
1269
+2147484609
1270
+2179768320
1271
+3486792401
1272
+4294968320
1273
+4295032832
1274
+4486784401
1275
+6104053449
1276
+8589935681
1277
+8804293473
1278
+10460362464
1279
+13065520825
1280
+13877119009
1281
+17179870340
1282
+17179952705
1283
+20000000000
1284
+30518337500
1285
+31381070257
1286
+33739007300
1287
+34359739593
1288
+68719478032
1289
+68719581712
1290
+69149458432
1291
+78371693632
1292
+94143190994
1293
+96951758924`,
1294
"niven-numbers": `1
1295
2
1296
3
holes.toml
@@ -735,6 +735,26 @@ preamble = '''
735
to and including <b>2400</b>.
736
'''
737
738
+['Leyland Numbers']
739
+category = 'Sequence'
740
+links = [
741
+ { name = 'OEIS A076980', url = '//oeis.org/A076980' },
742
+ { name = 'Wikipedia', url = '//www.wikipedia.org/wiki/Leyland_number' },
743
+]
744
+preamble = '''
745
+<p>
746
+ A leyland number is of the form <b>x<sup>y</sup> + y<sup>x</sup></b> where
747
+ <b>1 < y ≤ x</b>.
748
+
749
750
+ For example, <b>8</b> is a leyland number because
751
+ <b>2<sup>2</sup> + 2<sup>2</sup> = 8</b>.
752
753
754
+ Print all the leyland numbers from <b>1</b> to <b>100,000,000,000</b>
755
+ inclusive, each on their own line.
756
+'''
757
758
['Lucky Tickets']
759
category = 'Mathematics'
760
preamble = '''
0 commit comments