# Tag Info

### How even is a number?

x86_64 machine code, 4 bytes The BSF (bit scan forward) instruction does exactly this! 0x0f 0xbc 0xc7 0xc3 In gcc-style assembly, this is: ...
• 72.1k

### Divisibility test

Jelly, 1 byte This took me hours to golf. Try it online!
• 59.2k

### How even is a number?

Python, 25 bytes lambda n:len(bin(n&-n))-3 n & -n zeroes anything except the least significant bit, e.g. this: ...
• 39.1k

### Implement Ash's float division

Haskell, 35 bytes x?y|isNaN\$x/y=tanh x*tanh y|0<1=x/y Try it online! The relevant function is (?), which takes two ...
• 6,266

### Divisibility test

Brain-Flak, 72 70 64 62 58 46 bytes {({}[()]{(<()>)}{}<({}[()]<({}())>)>)}{}{{}}{} Takes dividend and divisor (in that order) as input and ...
• 210k

### Division and remainder

BitCycle, 146 79 64 bytes Just realized a whole section of my original code was unneccessary. Huge reduction! ...
• 39.5k

### Implement the divisibility-by-7 rule

Golfscript, 27 22 bytes {.9>{.10/\10%2*-f}*}:f You can use it this way: 1000f Explanation ...
• 411

### How even is a number?

Jelly, 4 bytes Æfċ2 In the latest version of Jelly, ÆEḢ (3 bytes) works. ...
• 21.5k

### Find the sum of the divisors of N

05AB1E, 2 bytes ÑO Try it online! How? Ñ Divisors O Sum
• 11.6k

### How even is a number?

Pyth, 6 bytes /P.aQ2 Try it here. ...
• 21.5k

### Divisibility test

x86_32 machine code, 8 bytes ...
• 421

### Divisibility Streak

Java 8, 44 42 41 39 bytes Crossed out 44 is still regular 44 ;( n->{int r=0;for(;~-n%--r<1;);return~r;} -2 bytes thanks to @LeakyNun. -1 byte thanks to @...
• 126k

### Divisibility test

Brain-flak 102, 98, 96 bytes ...
• 59.2k

### Divisibility test

Hexagony, 15, 13, 12 10 bytes Everybody's favorite hexagon-based language! :D TL;DR works using magic, unformatted solutions in decreasing byte count: ...
• 2,036

### How even is a number?

JavaScript (ES6), 18 bytes n=>Math.log2(n&-n) 4 bytes shorter than 31-Math.clz32. Hah.
• 2,727

### Semidivisibility

Python 2, 24 bytes lambda n,k:n*10%k==0<n%k Try it online! Checks that $10n$ is a multiple of $k$, but $n$ itself is not. 24 bytes ...
• 145k

### How even is a number?

JavaScript ES6, 22 19 bytes f=x=>x%2?0:f(x/2)+1 Looks like recursion is the shortest route.

### Division and remainder

Funciton, 224 108 bytes Byte count assumes UTF-16 encoding with BOM. ┌──┬───┐ ┌┴╖╓┴╖ ┌┴╖ │%╟║f╟┐│÷╟┘ ╘╤╝╙─╜│╘╤╝ └────┴─┘ Try it online! The above defines a ...
• 197k

### Division and remainder

brainfuck, 43 41 bytes ,<,[>->+<[>]>>>>+<<<[<+>-]<<[<]>-]>>.>>>. This uses a modified ...
• 210k

### Am I divisible by double the sum of my digits?

JavaScript (ES6), 31 29 27 bytes Takes input as a string. Returns zero for truthy and non-zero for falsy. n=>n%eval([...n+n].join+) Commented ...
• 192k

### Smallest palindrome divisible by the input

Haskell, 45 37 34 bytes (+)>>=until((reverse>>=(==)).show)
• 2,447

### Product of Divisors

05AB1E, 2 bytes ÑP Try it online! Explanation Ñ # divisors P # product
• 53k

### Implement the divisibility-by-7 rule

Haskell, 35 bytes until(<71)(\n->div n 10-2*mod n 10) Usage example: ...
• 35.8k

### Smallest palindrome divisible by the input

Pyth, 7 bytes *f_I`*Q Try it online: Demonstration Explanation ...
• 21.9k

### Proper Divisor mash-up

Oasis, 4 bytes Code: nj+U Try it online! Explanation: Extended version: ...
• 44.4k

### Implement Ash's float division

JavaScript (ES6), 45 bytes Expects (a)(b), as Numbers. Returns a Number. ...
• 192k
Accepted

### Divinacci Sequence

05AB1E, 9 bytes XÎFDŠ‚ÑOO Try it online! Explanation ...
• 53k