Resuelto


Cumulative Count
Given a row vector of integers with repeating values (with all repeating values occuring in a single continuous run), create an ...

alrededor de 2 meses hace

Resuelto


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

alrededor de 2 meses hace

Resuelto


find powers of two
find the unique, non-repeating, powers of 2 that sum to a given non-zero integer, n example: n = 23 result = [1 2 4 16] ...

alrededor de 2 meses hace

Resuelto


Moving Movsum
Given a vector (x) and a window (y), calculate the sum s(k) corresponding to k-y(k)+1:k values of x %%Example 1 x = [1 2 3 4...

alrededor de 2 meses hace

Resuelto


List numbers that cannot be expressed as the sum of two primes
The Goldbach conjecture claims that even numbers greater than 2 can be expressed as the sum of two prime numbers. What about the...

alrededor de 2 meses hace

Resuelto


Determine if LTI system with feedback control is stable
Linear timeiinvariant systems can be represented by the differential equation , where is an matrix, is an vector representing...

alrededor de 2 meses hace

Resuelto


Evaluate Deterministic Finite Automata on String
Given a Deterministic Finite Automata (DFA) and a string, determine whether or not the DFA will accept when ran on the string. A...

alrededor de 2 meses hace

Resuelto


Determine whether a number is a seesaw number
Cody Problem 60957 dealt with balanced primes. In that case, balance was measured in terms of the average of primes around a giv...

alrededor de 2 meses hace

Resuelto


List balanced primes
A balanced prime of order is one that equals the average of the primes before it and the primes after it. For example, 79 is ...

alrededor de 2 meses hace

Resuelto


P(girl likes you | she smiled at you)
Compute the probability Given the input probabilities

alrededor de 2 meses hace

Resuelto


List mean-of-2 primes
The prime number 53 is the average of the first prime before it (47) and the first prime after it (59), and the prime number 11 ...

alrededor de 2 meses hace

Resuelto


My wife's logic
Its is always the opposite of the causality law, that is to say the opposite of the implication relationship in math/logic terms...

alrededor de 2 meses hace

Resuelto


List even numbers whose Goldbach partition does not use the largest prime
The strong Goldbach conjecture says that every even number greater than 2 can be expressed as a sum of two prime numbers—that is...

alrededor de 2 meses hace

Resuelto


Extra colors
Context In the RGB color system used by Matlab, the color is a 1 x 3 / row vector [R G B] with each value/component R, G, B in ...

alrededor de 2 meses hace

Resuelto


Compile evidence for the Carmichael totient conjecture
The totient function counts the positive integers up to that are relatively prime to . The Carmichael totient conjecture state...

alrededor de 2 meses hace

Resuelto


Breaking up a chocolate bar
You've got a chocolate bar of size , and you want to break it up into bite-sized () pieces. How many steps are required to do th...

alrededor de 2 meses hace

Resuelto


Classify triangles as acute, obtuse, or right
In an acute triangle, the three interior angles are acute, or smaller than 90 degrees. In an obtuse triangle, one angle is obtus...

alrededor de 2 meses hace

Resuelto


Compute the antisigma function
The sum of divisors function, or , is the sum of the numbers that divide . The antisigma function is the sum of numbers less tha...

alrededor de 2 meses hace

Resuelto


Greater than before
Given an array of integers, write a function that returns elements that are greater than the one before them. For instance, ...

alrededor de 2 meses hace

Resuelto


Intersect three sequences
Most numbers have interesting properties, if you look hard enough and interpret “interesting” liberally. Let’s choose a number a...

alrededor de 2 meses hace

Resuelto


Largest Small n-Polygons or Biggest Little Polygon
Largest Small n-Polygons or Biggest Little Polygon for a number n is the polygon that has diameter one and that has the largest ...

alrededor de 2 meses hace

Resuelto


Find the summation of factorial series
Factorial numbers are n! = 1*2*3....*n the series is 1!, 2!, 3!,........, n!

alrededor de 2 meses hace

Resuelto


What kind of triangle?
Write a function named check_triangle that receives three positive integers as input: a, b, and c. These three numbers are inte...

alrededor de 2 meses hace

Resuelto


Check if a Number is a Palindrome Without Converting to String
Write a function that checks if a given positive integer is a palindrome without converting the number to a string or using stri...

alrededor de 2 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...

alrededor de 2 meses hace

Resuelto


Find the closest e-abundant numbers
An abundant number is an integer whose sum of its positive proper divisors—or the sum of its divisors excluding itself—exceeds ...

alrededor de 2 meses hace

Resuelto


Matrix Diagonal Sum
Given a square matrix A of size n x n, write a function to compute the sum of the elements on both the main diagonal and the ant...

alrededor de 2 meses hace

Resuelto


Permuted Multiples: Project Euler Problem 52
Return the smallest positive integer, x, for which x, 2x, 3x, 4x, 5x, and 6x, all contain the same digits but in different order...

alrededor de 2 meses hace

Resuelto


List e-perfect numbers
A perfect number is an integer that equals the sum of its positive proper divisors—or the sum of its divisors excluding itself. ...

alrededor de 2 meses hace

Resuelto


Sum powers of e-divisors
In number theory the function produces the sum of divisors of an integer raised to the power . Setting sums the divisors, as ...

alrededor de 2 meses hace

Cargar más