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

Timeline for Nth K-Ugly Number

Current License: CC BY-SA 3.0

14 events
when toggle format what by license comment
Apr 13, 2017 at 12:39 history edited Community Bot
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Oct 21, 2013 at 19:35 history edited primo CC BY-SA 3.0
deleted 2 characters in body
Oct 21, 2013 at 19:34 comment added primo You're right... it was the counting variable for a loop which is no longer there. Thanks
Oct 21, 2013 at 19:23 comment added boothby you never use that j
Oct 21, 2013 at 16:46 comment added boothby Hah. This is shorter than the sage solution I'd come up with, using built-ins... problem being that they've got lotsa letters to be user-friendly: x.prime_divisors()... ugh
Oct 19, 2013 at 5:36 history edited primo CC BY-SA 3.0
deleted 2 characters in body
Oct 19, 2013 at 5:32 comment added Coding man my mistake, its EOF error. I assumed your input is single space separated n and k as specified in the problem.
Oct 19, 2013 at 5:15 history edited primo CC BY-SA 3.0
added 1 characters in body
Oct 19, 2013 at 5:07 comment added primo My version is also 2.7.3. Are you sure you're receiving a Syntax Error and not EOF Error? If not run interactively, you will need to supply input via stdin, as in the usage examples above.
Oct 19, 2013 at 5:03 comment added Coding man mine is Python 2.7.3, shouldn't it work? i m noob :)
Oct 19, 2013 at 4:56 history edited primo CC BY-SA 3.0
added 4 characters in body
Oct 19, 2013 at 4:56 comment added primo The script is written for Python 2.
Oct 19, 2013 at 4:53 comment added Coding man syntax error at "n,k=input()"
Oct 19, 2013 at 4:42 history answered primo CC BY-SA 3.0

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