Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

added 22 characters in body
Source Link
Jitse
  • 8.1k
  • 3
  • 21
  • 45

Python 3, 8179 bytes

n=0
while 1:n+=1;a=[i for i in range(1,n+1)if n%i<1];n*len(a)/sum%sum(a)%1oror print(n)

Try it online! Try it online!

Outputs indefinitely.

Python 3, 81 bytes

n=0
while 1:n+=1;a=[i for i in range(1,n+1)if n%i<1];n*len(a)/sum(a)%1or print(n)

Try it online!

Python 3, 79 bytes

n=0
while 1:n+=1;a=[i for i in range(1,n+1)if n%i<1];n*len(a)%sum(a)or print(n)

Try it online!

Outputs indefinitely.

Source Link
Jitse
  • 8.1k
  • 3
  • 21
  • 45

Python 3, 81 bytes

n=0
while 1:n+=1;a=[i for i in range(1,n+1)if n%i<1];n*len(a)/sum(a)%1or print(n)

Try it online!

AltStyle によって変換されたページ (->オリジナル) /