Solved

Divisible by n, Composite Divisors

Pursuant to <http://www.mathworks.com/matlabcentral/cody/problems/42453-divisible-by-n-prime-vs-composite-divisors Divisible by ...

environ un mois ago

Solved

Divisible by n, Truncated-number Divisors

Some divisors only require a few numbers at the end of the number in question to determine divisibility, no matter how long. Exa...

environ un mois ago

Solved

Divisible by n, prime divisors from 20 to 200

Pursuant to the previous problem (linked below), this problem requires a function that checks for divisibility of large numbers ...

environ un mois ago

Solved

Divisible by n, prime divisors - 11, 13, 17, & 19

Divisibility checks against prime numbers can all be accomplished with the same routine, applied recursively, consisting of add ...

environ un mois ago

Solved

Divisible by 16

Write a function to determine if a number is divisible by 16. This can be done by a few different methods. Here are two: # If...

environ un mois ago

Solved

Divisible by 14

Write a function to determine if a number is divisible by 14. If a number is <http://www.mathworks.com/matlabcentral/cody/proble...

environ un mois ago

Solved

Divisible by 13

Write a function to determine if a number is divisible by 13. Similar to the number seven, this can be done by a few different m...

environ un mois ago

Solved

Divisible by 11

Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

environ 2 mois ago

Solved

Lights Out 6 - 5x5, 13 moves

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

environ 2 mois ago

Solved

Lights Out 5 - 5x5, 10 moves

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

environ 2 mois ago

Solved

Lights Out 4 - 5x5, 8 moves

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

environ 2 mois ago

Solved

Lights Out 3 - 5x5, 6 moves

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

environ 2 mois ago

Solved

Lights Out 2 - 5x5, 4 moves

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

environ 2 mois ago

Solved

Lights Out 1 - 5x5, 3 moves

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

environ 2 mois ago

Solved

Lunar Arithmetic (Addition)

<https://oeis.org/A087061 OEIS link for a description of lunar arithmetic> Simply take the larger digit. Example 1: ...

environ 2 mois ago

Solved

Add consecutive integer numbers

Given consecutive numbers, add the numbers *without using the sum command in MATLAB.*

environ 2 mois ago

Solved

Cody Problems in French : Trouvez la logique Pt.1

On rentre x = 4 et il en sort y = 160. Trouvez la logique entre x et y, aidez-vous de la test suite. Bon courage. P.S: L'...

environ 2 mois ago

Solved

Mean number of letters per word (Easy)

Given a character array, s, representing a sentence, return a, the arithmetic mean of the number of letters per word in the give...

environ 2 mois ago

Solved

Pattern Sum

Write a function which receives two single digit positive integers, (k and m) as parameters and calculates the total sum as: k...

environ 2 mois ago

Solved

Angle between two vectors

Given 2 pairs of _cartesian co-ordinates_, determine the angle between the 2 vectors formed by the _points_ and the _origin_. An...

environ 2 mois ago

Solved

Sum of a geometric series

Give the sum of the first 'n' terms of a geometric series, given 'a' as the first term and 'r' as the ratio.

environ 2 mois ago

Solved

Ratio between sum of primes and sum of factors

Write a function that calculates the ratio between the sum of primes numbers lower or equal to x, and the sum of the factors of ...

environ 2 mois ago

Solved

Ratio between sum of primer numbers and non-prime numbers

Write a function that calculates the ratio between the sum of the prime numbers lower or equal than x, and the sum of the non-pr...

environ 2 mois ago

Solved

Check if is a square

Given four coordinates, write a function to check if they form a square on the XY plane.

environ 2 mois ago

Solved

Double the next!

Given two numbers, m and n, find a matrix m x n where each element value is twice the value of the previous element. Starting fr...

environ 2 mois ago

Solved

How to find the position of an element in a vector without using the find function

Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for.

environ 2 mois ago

Solved

Volume of Spherical Shell

In three-dimensional space, a spherical shell can be constructed from two concentric spheres. Determine the volume of a spheric...

environ 2 mois ago

Solved

Perimeter of a quadrilateral

There are four cars starting at a point. The first car points north, the second one points east, the third one points south, an...

environ 2 mois ago

Solved

An Ohm's Law Calculator

*BACKGROUND / MOTIVATION:* Many important observations in math and science can be described by short, but powerful, equations...

environ 2 mois ago