Generalised Hamming Number
Inspired by Project Euler n°204 and Problem 1308 by James
A generalised Hamming number of type n, has no prime factor larger ...
대략 3년 전
문제를 풀었습니다
Numbers with prime factors 2, 3 and 5.
Make a function which takes one positive integer n and returns a matrix with the numbers of the form (2^i)*(3^j)*(5^k) which are...
대략 3년 전
문제를 풀었습니다
Smith numbers
Return true if the input is a Smith number in base ten. Otherwise, return false. Read about Smith numbers at http://en.wikipedia...
대략 3년 전
문제를 풀었습니다
Find all vampire fangs
A <http://en.wikipedia.org/wiki/Vampire_number vampire number> is a
number v that is the product of two numbers x and y such th...
대략 3년 전
문제를 풀었습니다
Find vampire numbers
A <http://en.wikipedia.org/wiki/Vampire_number vampire number> is a
number v that is the product of two numbers x and y such th...
대략 3년 전
문제를 풀었습니다
Fangs of a vampire number
A vampire number is a number v that is the product of two numbers x and y such that the following conditions are satisfied:
at ...
대략 3년 전
문제를 풀었습니다
Proper Factors
Generate the proper factors of input integer x and return them in ascending order. For more information on proper factors, refer...
대략 3년 전
문제를 풀었습니다
Prime factor digits
Consider the following number system. Calculate the prime factorization for each number n, then represent the prime factors in a...
대략 3년 전
문제를 풀었습니다
Multiples of a Number in a Given Range
Given an integer factor _f_ and a range defined by _xlow_ and _xhigh_ inclusive, return a vector of the multiples of _f_ that fa...