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

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

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

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

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

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

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

8 meses 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

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

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

8 meses hace | 2 | 28 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...

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

8 meses 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=...

8 meses 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=...

8 meses hace | 2 | 23 solvers

Resuelto


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

8 meses hace

Resuelto


Create a fibonacci series

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

8 meses hace

Resuelto


Subtraction
Given two numbers a and b subtract them

8 meses hace

Resuelto


Mode
Find the mode of a vector x

8 meses hace

Resuelto


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

8 meses hace

Resuelto


x = 1

8 meses hace

Resuelto


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

8 meses hace

Resuelto


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

8 meses hace

Resuelto


Prime Number
Determine if a number is prime

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

8 meses hace

Resuelto


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

8 meses hace

Resuelto


Surface area of a cone

8 meses hace

Resuelto


PIN code

8 meses hace

Resuelto


Circle : Square

8 meses hace

Resuelto


divide by 5

8 meses hace

Cargar más