Skip to main content
deleted 102 characters in body
Source Link
lyxal
  • 35.6k
  • 2
  • 69
  • 148

Vyxal, 4 3+1 3 bytes

K⊐∑=∆K= 

Try it Online!Try it Online!

That-1 byte thanks to @Deadcode for telling me to not be an idiot and remember that I added a sum of proper divisors built-in. I actually forgot that I did

This is: does the sum () of the proper divisors of the implicit input (K⊐ -> K includes the input as a divisor, so we need to remove it by returning divisors[:-1] - which is what ∆K does) equal the input itself (=) the now cycled through implicit input (if EOI is reached, and input is taken through arguments, Vyxal resets the input pointer to 0 and continues).

Vyxal, 4 bytes

K⊐∑= 

Try it Online!

That is: does the sum () of the proper divisors of the implicit input (K⊐ -> K includes the input as a divisor, so we need to remove it by returning divisors[:-1] - which is what does) equal (=) the now cycled through implicit input (if EOI is reached, and input is taken through arguments, Vyxal resets the input pointer to 0 and continues).

Vyxal, 3+1 3 bytes

∆K= 

Try it Online!

-1 byte thanks to @Deadcode for telling me to not be an idiot and remember that I added a sum of proper divisors built-in. I actually forgot that I did

This is: does the sum of the proper divisors of the input (∆K) equal the input itself (=).

added 292 characters in body
Source Link
lyxal
  • 35.6k
  • 2
  • 69
  • 148

Vyxal, 4 bytes

K⊐∑= 

Try it Online!

Just the same old "doesThat is: does the sum () of the proper divisors of the implicit input (K⊐ -> K includes the input as a divisor, so we need to remove it by returning divisors[:-1] - which is what does) equal (=) the input"now cycled through implicit input (if EOI is reached, and input is taken through arguments, Vyxal resets the input pointer to 0 and continues).

Vyxal, 4 bytes

K⊐∑= 

Try it Online!

Just the same old "does the sum of the divisors equal the input"

Vyxal, 4 bytes

K⊐∑= 

Try it Online!

That is: does the sum () of the proper divisors of the implicit input (K⊐ -> K includes the input as a divisor, so we need to remove it by returning divisors[:-1] - which is what does) equal (=) the now cycled through implicit input (if EOI is reached, and input is taken through arguments, Vyxal resets the input pointer to 0 and continues).

Source Link
lyxal
  • 35.6k
  • 2
  • 69
  • 148

Vyxal, 4 bytes

K⊐∑= 

Try it Online!

Just the same old "does the sum of the divisors equal the input"