Solved


Find the remainder with the factorial of PRIMES?
* Take a number greater than or equal to 2 and take its primes. e.g. 6 and its primes are 2 3 5 * calculate the factorial of i...

2 months ago

Solved


Conditional transpose
You're given two vectors of the same length, x and y, which might be row or a column vectors. Your task is to ensure that y has ...

2 months ago

Solved


Fast 1-D Convolution (valid shape)
Pursuant to the first problem in the <http://www.mathworks.com/matlabcentral/cody/?term=Fast+1-D+Convolution fast 1-D convolutio...

2 months ago

Solved


Full combinations
Given n input vectors x1, x2, …, xn, generate a p*n matrix y whose rows contain all element-wise combinations of the vectors x1,...

2 months ago

Solved


Fast 1-D Convolution (same shape)
Pursuant to the first problem in the <http://www.mathworks.com/matlabcentral/cody/?term=Fast+1-D+Convolution fast 1-D convolutio...

2 months ago

Solved


Fast 1-D Convolution (full shape)
This is the first problem in the <http://www.mathworks.com/matlabcentral/cody/?term=Fast+1-D+Convolution fast 1-D convolution se...

2 months ago

Solved


Total Area Covered by Overlapping Polygons
Given a variable length set of polygon vertex coordinates, compute the total area covered. For example, take two polygons with t...

2 months ago

Solved


Grimm's Conjecture
Grimm's conjecture states that to each element of a set of consecutive composite numbers, one can assign a unique prime number t...

2 months ago

Solved


Find the Prime Factors and Divisors of a Number
Given a positive integer n, find its prime factors as well as all of its divisors. Example: n=12 has prime factors [2,2,3] and ...

2 months ago

Solved


Check if an FAA N-Number is Valid
An N-number is a unique registration assigned by the Federal Aviation Administration (FAA) to every civil aircraft operating in ...

2 months ago

Solved


Matrix Column Standardizer
Write a function scaled_mat = standardize_columns(A) that standardizes each column of a 2D matrix A using z-score normalization....

2 months ago

Solved


Count Even Numbers
Write a function count = count_evens(vec) that takes a 1D array (vector) of numbers vec and returns the total count of even numb...

2 months ago

Solved


Play PRIMEGAME
Have you ever used the Sieve of Eratosthenes and said, "I wonder whether there’s a less efficient way to find prime numbers."? N...

2 months ago

Solved


High Precision Square Root (Inspired by Project Euler 80)
Given a positive integer n which is not a perfect square, write a MATLAB script that will calculate the square root of n truncat...

2 months ago

Solved


First use of arrayfun() and anonymous function @(x)
Create an anonymous function using @(x) for a parabola equation for the given coefficients stored in s with s(1)x2 + s(2)x + s(...

2 months ago

Solved


Easy Sequences 80: Sum of the n-th Row of Fibonacci Square Triangle
We shall call the following arrangement of Fibonacci numbers, as the Fibonacci Square Triangle: where...

2 months ago

Solved


List the delete-a-digit primes

2 months ago

Solved


Find the smallest prime with n inside
Consider the sequence that begins 101, 113, 127, 131, 149, 151, 163,... Not only is every term prime, the th term is the smalles...

2 months ago

Solved


Fermat primes
Historical context The french mathematician Pierre de Fermat found the formula to find some prime numbers. He thought / co...

2 months ago

Solved


Ulam primes second formula
Historical context The polish-american mathematician Stanislaw Ulam found the formula to give some prime numbers not given...

2 months ago

Solved


Ulam primes first formula
Historical context The polish-american mathematician Stanislaw Ulam found the formula to give the first 760 prime numbers ...

2 months ago

Solved


Euclid primes
Historical context Euclid, the greek mathematician proved at his time that the prime numbers set is an infinite. By the way he ...

2 months ago

Solved


Euler primes
Historical context The great swiss mathematician Leonhard Euler found the formula to give some prime numbers. Problem...

2 months ago

Solved


Find the first occurence of a given gap between two consecutive prime numbers
Problem statement Given a gap = p' - p between the two consecutive prime numbers p and p', find its first occurence, f. E...

2 months ago

Solved


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

2 months ago

Solved


Check the integers additive decomposition conjecture
Problem statement A conjecture (I rediscovered ?) related to Goldbach's one states that every integer above 2 can be written ...

2 months ago

Load more