Solved


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

11 months ago

Solved


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.

11 months ago

Solved


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

11 months ago

Solved


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

11 months ago

Solved


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

11 months ago

Solved


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

11 months ago

Solved


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

11 months ago

Solved


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

11 months ago

Solved


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

11 months ago

Problem


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

11 months ago | 2 | 30 solvers

Solved


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

11 months ago

Solved


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

11 months ago

Solved


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

11 months ago

Problem


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

11 months ago | 2 | 25 solvers

Solved


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

11 months ago

Solved


Create a fibonacci series

11 months ago

Solved


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

11 months ago

Solved


Subtraction
Given two numbers a and b subtract them

11 months ago

Solved


Mode
Find the mode of a vector x

11 months ago

Solved


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

11 months ago

Solved


x = 1

11 months ago

Solved


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

11 months ago

Solved


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

11 months ago

Solved


Prime Number
Determine if a number is prime

11 months ago

Solved


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

11 months ago

Solved


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

11 months ago

Solved


Surface area of a cone

11 months ago

Solved


PIN code

11 months ago

Solved


Circle : Square

11 months ago

Solved


divide by 5

11 months ago

Load more