Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Review Suggested Edit

You can't approve or reject suggested edits because you haven't yet earned the Edit Posts ability.

Rejected.
This suggested edit was rejected over 3 years ago by Quintec‭:

unnecessary bump

0 / 255
Really Cool Numbers
  • Define a *cool* number as a number whose proper divisors (all except for the number itself) have an integral mean. Define a *really cool* number as a number whose divisors (including itself) are all cool. (We explicitly define 1 to be both cool and really cool.) Given a positive integer, determine whether or not it is really cool.
  • # Examples
  • Prime numbers are both cool and really cool, since 1 is defined as cool.
  • 15 is really cool, because $\frac{1+3+5}{3} = 3$ and primes/1 are cool.
  • 30 is cool, since $\frac{1+2+3+5+6+10+15}{7} = 6$, but not really cool, since 10 is not cool.
  • Here is a short list of really cool numbers for testing: $2, 5, 6, 9, 25, 207$
  • This is code-golf, so shortest code wins.
  • Define a *cool* number as a number whose proper divisors (all except for the number itself) have an integral mean. Define a *really cool* number as a number whose divisors (including itself) are all cool. (We explicitly define 1 to be both cool and really cool.) Given a positive integer, determine whether or not it is really cool.
  • # Examples
  • Prime numbers are both cool and really cool, since 1 is defined as cool.
  • 15 is really cool, because $\frac{1+3+5}{3} = 3$ and primes/1 are cool.
  • 30 is cool, since $\frac{1+2+3+5+6+10+15}{7} = 6$, but not really cool, since 10 is not cool.
  • Here is a short list of really cool numbers for testing: $2, 5, 6, 9, 25, 207$
  • This is <a class="badge is-tag">code-golf</a>, so shortest code wins.

Suggested over 3 years ago by General Sebast1an‭