Resuelto


Project Euler: Problem 10, Sum of Primes
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below the input, N. Thank you <http:/...

alrededor de 1 año hace

Resuelto


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

alrededor de 1 año hace

Resuelto


Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

alrededor de 1 año hace

Resuelto


Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

alrededor de 1 año hace

Resuelto


Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

alrededor de 1 año hace

Resuelto


find "greatest common divisor" of two integer value
A function to find Greatest Common Divisor of two integer input E.G. x=-18 y=96 output should be +6 x=-18; y=96; >>your...

alrededor de 1 año hace

Resuelto


Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...

alrededor de 1 año hace

Resuelto


Create sequnce 1 4 9 16 25.........
Create sequnce 1 4 9 16 25......... upto entered input value using matlab scripting commands. Let y be output and x be input

alrededor de 1 año hace

Resuelto


Primes numbers which are the difference of two consecutive cubes
Problem statement Given a positive integer n greater than 2, find the prime numbers less or equal to n and which are the diff...

alrededor de 1 año hace

Problema


Primes numbers which are the difference of two consecutive cubes
Problem statement Given a positive integer n greater than 2, find the prime numbers less or equal to n and which are the diff...

alrededor de 1 año hace | 2 | 32 solvers

Resuelto


Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

alrededor de 1 año hace

Resuelto


Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...

alrededor de 1 año hace

Resuelto


Find the first occurence of a given gap between two consecutive prime numbers
Given a gap = p' - p between the two consecutive prime numbers p and p', find its first occurence, f. For examples : If , f=...

alrededor de 1 año hace

Problema


Find the first occurence of a given gap between two consecutive prime numbers
Given a gap = p' - p between the two consecutive prime numbers p and p', find its first occurence, f. For examples : If , f=...

alrededor de 1 año hace | 2 | 27 solvers

Resuelto


Unique rows
A matrix is given as the input. Remove any duplicate rows from the matrix. keep the first occurrence.

alrededor de 1 año hace

Resuelto


Create a fibonacci series

alrededor de 1 año hace

Resuelto


Zero Out Negative Elements
Write a MATLAB function called zeroNegatives that takes a numeric vector v as input and returns a modified version where all neg...

alrededor de 1 año hace

Resuelto


Subtraction
Given two numbers a and b subtract them

alrededor de 1 año hace

Resuelto


Mode
Find the mode of a vector x

alrededor de 1 año hace

Resuelto


x = 3
write a funciton to make the variable x = 3

alrededor de 1 año hace

Resuelto


x = 1

alrededor de 1 año hace

Resuelto


Add two numbers
Given two numbers a and b add them together

alrededor de 1 año hace

Resuelto


Remainder
Given two number a and b find the remainder when you divide a by b

alrededor de 1 año hace

Resuelto


Prime Number
Determine if a number is prime

alrededor de 1 año hace

Resuelto


'X'avier
Given a square matrix A of size n, write a function to create a new matrix B where only the elements on the main diagonal and th...

alrededor de 1 año hace

Resuelto


Surface area of a sphere
Given the radius of a sphere, find it's Surface area

alrededor de 1 año hace

Resuelto


Surface area of a cone

alrededor de 1 año hace

Resuelto


PIN code

alrededor de 1 año hace

Resuelto


Circle : Square

alrededor de 1 año hace

Resuelto


divide by 5

alrededor de 1 año hace

Cargar más