89 captures
29 Apr 2015 - 24 Feb 2024
Mar APR May
16
2017 2018 2019
success
fail

About this capture

COLLECTED BY

Organization: Alexa Crawls

Starting in 1996, Alexa Internet has been donating their crawl data to the Internet Archive. Flowing in every day, these data are added to the Wayback Machine after an embargo period.

Collection: Alexa Crawls

Starting in 1996, Alexa Internet has been donating their crawl data to the Internet Archive. Flowing in every day, these data are added to the Wayback Machine after an embargo period.
TIMESTAMPS

The Wayback Machine - http://web.archive.org/web/20180416215344/http://www.lintcode.com:80/en/problem/ugly-number/
 



Action Success!

Action Error!


















Language

English





 Sign in

Sign up


517. Ugly Number







 Description

 Notes

 Testcase

 Judge
Discuss 





Write a program to check whether a given number is an ugly number`.

Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 6, 8are ugly while 14is not ugly since it includes another prime factor 7.

 Notice

Note that 1is typically treated as an ugly number.




Example
Given num = 8return true
Given num = 14return false 


Tags
Mathematics


Related Problems

2 (heap),(mathematics),(google) Medium Super Ugly Number 28 % 1 (airbnb),(mathematics),(hash-table),(twitter),(uber) Easy Happy Number 32 %





Login to try Notes!



Login to Test!




No Submission Yet


Total Runtime: 0ms
0% test cases passed.
Your stdout
Output
Expected
Error Message

Compile Warning

You should submit a submission
Take a look at the time distribution of your submission!
Wrong code got passed?
Provide more test data to LintCode!



 

Code editor is not visible on small screen.


 



Action Success!

Action Error!