A résolu


List Proth primes

plus de 4 ans il y a

A résolu


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. ...

plus de 4 ans il y a

A résolu


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 ...

plus de 4 ans il y a

A résolu


Find pairs of primes with the same digit sum

plus de 4 ans il y a

A résolu


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. ...

plus de 4 ans il y a

A résolu


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...

plus de 4 ans il y a

A résolu


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 ...

plus de 4 ans il y a

A résolu


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.

plus de 4 ans il y a

A résolu


non-repitition of numbers in a vector

plus de 4 ans il y a

A résolu


Identify prime words

plus de 4 ans il y a

A résolu


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...

plus de 4 ans il y a

A résolu


List the dihedral primes

plus de 4 ans il y a

A résolu


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...

plus de 4 ans il y a

A résolu


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. ...

plus de 4 ans il y a

A résolu


Play PRIMEGAME

plus de 4 ans il y a

A résolu


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...

plus de 4 ans il y a

A résolu


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

plus de 4 ans il y a

A résolu


List prime anagrams of a number

plus de 4 ans il y a

A résolu


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...

plus de 4 ans il y a

A résolu


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

plus de 4 ans il y a

A résolu


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"]; ...

plus de 4 ans il y a

A résolu


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 ...

plus de 4 ans il y a

A résolu


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] ) == [...

plus de 4 ans il y a

A résolu


Tribonacci Sequence
Generate the tribonacci sequence upto n

plus de 4 ans il y a

A résolu


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

plus de 4 ans il y a

A résolu


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

plus de 4 ans il y a

A résolu


Divisors

plus de 4 ans il y a

Charger plus