Resuelto


List Proth primes

alrededor de 4 años hace

Resuelto


List the nth prime quartet prefix
Prime numbers larger than 5 can end only in 1, 3, 7, or 9, but of course not all numbers ending in these four digits are prime. ...

alrededor de 4 años hace

Resuelto


Count the primes in Collatz sequences
Several Cody problems (21, 69, 42937, 44448, 44784, 52422) involve Collatz sequences. These start with a seed . If is odd, the ...

alrededor de 4 años hace

Resuelto


Find pairs of primes with the same digit sum

alrededor de 4 años hace

Resuelto


Area-01
Given the radius of the circle inscribed in a square, find the area that is not bounded by the circle but inside the square. ...

más de 4 años hace

Resuelto


Create array of all Distances between two Sets of Points
This Challenge is a subsection of Martian Pranks based on Tim's efficient Distance calculation between sets of points. Given Po...

más de 4 años hace

Resuelto


Generate a matrix as follows
write a Function that gives like the following for a random n: n=2 ans= [ 0 1 1 0] n=6 ans= [ 0 ...

más de 4 años hace

Resuelto


Find the number of days in a given year
Given a year number (eg. 2000) as input, find how many days are there in the given year.

más de 4 años hace

Resuelto


non-repitition of numbers in a vector

más de 4 años hace

Resuelto


Identify prime words

más de 4 años hace

Resuelto


Determine whether a number is unprimeable
The number 204 is unprimeable because no single digit can be changed to make it prime. In contrast, the number 207 is not unprim...

más de 4 años hace

Resuelto


List the dihedral primes

más de 4 años hace

Resuelto


Ugly numbers - 02
Ugly numbers are those whose prime factors are 2, 3 or 5. find the nth ugly number. n.b. unlike the previous problem,trivi...

más de 4 años hace

Resuelto


Ugly numbers - 03
For this case, a number is defined ugly if it has prime factors consisting of only elements of x. Find the nth ugly number. ...

más de 4 años hace

Resuelto


Play PRIMEGAME

más de 4 años hace

Resuelto


Determine whether a number is a prime self number
Integers can be classified as generated numbers or self numbers. A generated number is one that can be expressed as the sum of a...

más de 4 años hace

Resuelto


Ugly numbers - 01
Ugly numbers are those whose prime factors are 2, 3 or 5. find the nth ugly number.

más de 4 años hace

Resuelto


List prime anagrams of a number

más de 4 años hace

Resuelto


List Honaker primes
The number 131 is the 32nd prime number. It is a Honaker prime because the sum of its digits (1+3+1) equals the sum of the digit...

más de 4 años hace

Resuelto


Palindromic Prime
Palindromic Prime is a prime number that is also a palindromic number. (Wiki, OEIS) If given a monotonic series (increment=1) ...

más de 4 años hace

Resuelto


Find the index of elements in a string vector
In the vector of v, find the index of elements specified by a. v = ["Lion","Koara","Elephant","Snake","Dog","Cat","Camel"]; ...

más de 4 años hace

Resuelto


Determina si el número es primo
Primero, antes que nada: ¿Qué es un número primo? Un número primo es cualquier número que solamente se puede dividir por 1 y ...

más de 4 años hace

Resuelto


Sort Except Zeros
Sort the numbers in a vector. But the position of zeros should not be changed. Example: sort_except_zeros( [5 3 0 0 2 4] ) == [...

más de 4 años hace

Resuelto


Tribonacci Sequence
Generate the tribonacci sequence upto n

más de 4 años hace

Resuelto


Which Prime
Given two prime numbers, specify the relation between them i.e. - 'Twin Prime', 'Cousin Prime', 'Sexy Prime' or 'None'

más de 4 años hace

Resuelto


Alternate list of elements
Write a function that combines two lists by alternating the elements, e.g. ['a','b','c'], ['1','2','3'] → 'a1b2c3'.

más de 4 años hace

Resuelto


Divisors

más de 4 años hace

Cargar más