# Tag Info

1 vote

### Modified Boggle Checker, with Modified Boggle-able Code

dc, score 3, 14142 bytes ...
• 399

R, 50 49 bytes -1 byte thanks to pajonk function(x,n=1:dim(x)-1)all((!n%o%n*!diag(n))-!x) Try it online! This solution is similar to the other existing 2 answers ...
1 vote

### No strings attached!

Cubical Agda 2.6.5, 591 Bytes Cubical Agda library version a0b4ba3. I use the HEAD version for my convenience, but a standard release version should do. In fact a ...
• 735

### Is this a valid PZN?

Common Lisp, 92 bytes Input is a list of numbers (defun p(n)(=(mod(reduce'+(mapcar(lambda(x y)(* x y))n'(1 2 3 4 5 6 7 0)))11)(car(last n))))
• 780

### Is this a valid PZN?

Jelly, 8 bytes ṖḋJ%11⁼Ṫ A monadic Link that accepts the list of eight digits and yields 1 (truthy) if a valid PZN or ...
• 107k

### Is this a valid PZN?

TI-BASIC, 29 bytes Input A ʟA(8)=remainder(Σ(IʟA(I),I,1,7),11 This program takes an array of digits as inputs, and outputs 1 (for true) or 0 (for false). It uses a ...

• 751

• 24.7k

### Is this a valid PZN?

Python, 42 bytes lambda d:int(d[6::-1].hex())//.99%11==d[7] Attempt This Online! Expects input as a byte string. How? This abuses the hex method of bytes objects ...
• 2,884

### Is this a valid PZN?

05AB1E, 8 bytes ¨ƶO11%Qθ Input as a list of digits. Try it online or verify all test cases. Explanation: ...
• 127k

### Is this a valid PZN?

K (ngn/k), 17 bytes It takes a digit array. ...
• 541

### Is this a valid PZN?

Nekomata + -e, 8 bytes 7R¢ɔ∙11¦ Attempt This Online! ...
• 48.5k
1 vote

### Is this a valid PZN?

JavaScript (Node.js), 40 bytes a=>1>a.reduce((p,v,i)=>p-~i*v,a[7]*2)%11 Try it online! From Arnauld's. 8th digit * 8 + 8th digit * 2 = 8th digit * (-1), ...
• 24.5k

### Is this a valid PZN?

Python 3.8,  50  47 bytes -1 thanks to l4m2* leading to two more. Could save at least two bytes by outputting a falsey value for valid and a truthy value for invalid; potentially quite a few using a ...
• 107k
1 vote

### Is this a valid PZN?

Japt -h, 11 bytes Takes input as a digit array. Ç¶UxÈ*ÒYÃuB Try it
• 42.1k
1 vote

### Is this a valid PZN?

C (gcc), 51 bytes s,i;f(int*l){for(i=s=0;i<7;)s+=*l++*++i;s=s%11-*l;} Try it online! function returning true if invalid, false if valid PZN code.
• 10.8k
1 vote

### Is this a valid PZN?

PowerShell Core, 43 bytes $args[0..6]|%{$s+=$_*++$i} $s%11-eq$args[7] Try it online!
• 3,118

### Is this a valid PZN?

APL+WIN, 23 bytes Prompts for number as a string of digits. (7↓n)=11|+/(⍳7)×7↑n←⍎¨⎕ Try it online! Thanks to Dyalog Classic
• 6,286

### Is this a valid PZN?

MATL, 12 11 bytes 0&)7:*s11\= Try it online! Or verify all test cases. Explanation ...
• 105k

### Is this a valid PZN?

Uiua SBCS, 16 bytes =◿11/+×⇌¯⇡¯7:°⊂⇌ Try it!
• 24.7k
1 vote

### Is this a valid PZN?

Python 3, 60 bytes lambda a:sum([x*-~i for i,x in enumerate(a[:-1])])%11==a[-1] Try it online!
• 5,532

### Is this a valid PZN?

JavaScript (ES6), 40 bytes Expects an array of 8 digits and returns a Boolean value. a=>!a.reduce(p=>p%11+a[i++]*~(~i%9),i=0) Try it online! Commented ...
• 193k

### Is this number a prime?

Dis, 19950 bytes ...
• 426

### Doubleouble Talkalk

R, 24 23 bytes -1 byte thanks to pajonk \(x)grep('.+(.+)\\1',x) Attempt This Online! Not a very special solution (regex taken here), but almost surely it's going ...

### Is this number a prime?

AWK, 32 bytes {for(j=2;\$0%j++;);print j~i?1:0} Try it online!
• 91

### Is this a solvable Numberlink?

05AB1E, 71 (or 72†) bytes ˜©þàÝ®ð¢ã.Δð®r.;IgäDUàLεXQDV˜ƶIgäΔ2Fø0δ.ø}2Fø€ü3}Y*εεÅsyøÅs«à}}}˜0KÙg}P Inputs-matrix uses spaces as blank cells. Outputs a valid list ...
• 127k

### Is this a solvable Numberlink?

Charcoal, 103 87 bytes ＷＳ⊞υι≔⪫υωη≔Ｉ⌈ηζＦＸζ№η.¿¬ⅈ«≔¹εＦζ«⪪⪫⪪⭆η∨Σλ⊕﹪÷ιＸζ№…ημ.ζＩ⊕κψＬθ≔⌕ηＩ⊕κδＪ﹪δＬθ÷δＬθ¤.≧×⁼ＬＫＡＬηε⎚»ε Try it online! Link is to verbose version of code. ...
• 172k

### Does the fishy road have an end?

Pip -r, 85 bytes L#Jg{xPB Y(gDo+:1210@sDp+:2101@s)I#(a:">v<^"@?y)s:aI#(b:"\/"@?y)s:(s+bBX1)-b}x~[-|] ...
• 39.7k

### Is this a solvable Numberlink?

Jelly,  28  26 bytes ṁŻŒĠḊµŒ!ạƝ€§ṂỊ)Ȧ FoṀrƊŒpçƇ A monadic Link that accepts a list of lists containing any number of zeros and exactly two each of a non-empty* ...
• 107k

### Is this a solvable Numberlink?

JavaScript (ES7), 122 bytes Expects a matrix of integers with 0's for empty cells. Returns 0 or 1. This is 100% brute-force, but fast enough to solve the test cases in ~2 sec. on TIO. ...
• 193k