A résolu


Intersection points of a polynomial
Find the intersection points of a polynomial, given by its vector of coefficients with the X-axis and the Y-axis. Input: a poly...

environ 3 ans il y a

A résolu


Harmonic series counting
The function takes a positive limit as input, And counts how many terms must be summed in the harmonic series: 1/1, 1/2, 1/3, ...

environ 3 ans il y a

Problème


Easy Sequences 86: The "real" Hyperprimorials
In Easy Sequences 85, we define the hyperprimorial of , as a exponent ladder of primes numbers from the -th prime down to first ...

environ 3 ans il y a | 0 | 3 solveurs

Problème


Easy Sequences 85: Hyperprimorials
Given an integer , the primorial of , , is defined as product of all primes from to the -th prime. In other words, if is the ...

environ 3 ans il y a | 0 | 1 solveur

A résolu


Kolakoski Sequence
This is a modified version of the kolakoski sequence. Refer to the problem <https://www.mathworks.com/matlabcentral/cody/p...

environ 3 ans il y a

A résolu


Integer sequence - 2 : Kolakoski sequence
Get the n-th term of Kolakoski Sequence.

environ 3 ans il y a

A résolu


Exponentiation
Given 3 integers b,e,k; find -- mod(b^e,k)

environ 3 ans il y a

A résolu


Find the next prime number
Find the next prime number or numbers for given n. For example: n = 1; out = 2; or n = [5 7]; out = [7 11]; ...

environ 3 ans il y a

A résolu


tetration
About tetration.

environ 3 ans il y a

A résolu


List the Euclid numbers
Euclid proved that the number of primes is infinite with the following argument. Suppose the primes form a finite set , , . Comp...

plus de 3 ans il y a

A résolu


Exhaust all possible logical vectors
Input a length argument and list all possible logical vectors of that length. My solution is of size 29. Can you find an even s...

plus de 3 ans il y a

A résolu


Find two numbers that add up to the target value
Given a vector A and target n, return the indices of two numbers that add up to n. If there are multiple solutions, return the f...

plus de 3 ans il y a

A résolu


Caesar Cipher
Given a input word x and a shift n, encrypt the word with caesar cipher of shift n.

plus de 3 ans il y a

Problème


Easy Sequences 84: Digits of Powers of 5
OEIS sequence #A008566, deals with the following series: This sequence is the digits of powers of 5 listed si...

plus de 3 ans il y a | 0 | 3 solveurs

A résolu


Compute the nth term from the golden sieve

plus de 3 ans il y a

A résolu


Odd row
Create a row 'y' with odd numbers where the potential maximum number is given by 'x' and the space between them by 'm'. The firs...

plus de 3 ans il y a

A résolu


Addition
Add the two numbers to equal 3

plus de 3 ans il y a

Problème


Easy Sequences 83: Digits of Powers of 3
This problem is a simpler version of 'Easy Sequences 82: Digits of Powers of 2'. Given integers and , we are asked to return th...

plus de 3 ans il y a | 0 | 2 solveurs

A résolu


Longest Collatz Sequence
Inspired by Projet Euler n°14. The Collatz iterative sequence (See Cody problem n° 2103 and 211) is defined for the set of po...

plus de 3 ans il y a

A résolu


Fill an array given a sum and array length values
Fill an array with random numbers so that their sum and array length will be equal to the given values as input. Function will ...

plus de 3 ans il y a

A résolu


Convert float to base N
The matlab function dec2base converts a positive integer number to a specified base. Extend it so that it works with non intege...

plus de 3 ans il y a

A résolu


Canadian Conundrum
After succesfully completing the French Conundrum, you have decided to take a vacation. Your trip is amongst the mighty mountai...

plus de 3 ans il y a

A résolu


French Conundrum
The French army is trapped, sorrounded in backwards direction (South and West directions) by enemy traps and ambushes. You are n...

plus de 3 ans il y a

A résolu


Acid-Base Chemistry: Which side of the reaction is more favorable?
In an Acid-Base reaction, there is always going to be an acid, a base, a conjugate acid, and a conjugate base. When provided wit...

plus de 3 ans il y a

Problème


Digits of Powers of 2
In Project Euler Problem #16, we are asked for sum of the digits of powers of 2. Here we will be asked for more than that. Give...

plus de 3 ans il y a | 0 | 3 solveurs

A résolu


That's some divisor you've got there...
Given a positive integer x, calculate the sum of all of the divisors of the number. Please include the number itself in your fi...

plus de 3 ans il y a

A résolu


sum of vectors
sum of vectors

plus de 3 ans il y a

A résolu


volume of a cone
create a program that allows us to calculate the volume of a cone using radius "r" and height "h"

plus de 3 ans il y a

A résolu


volume of a cube
volume of a cube with "x" side

plus de 3 ans il y a

A résolu


area of a circle
area of a circle with "r" as radius

plus de 3 ans il y a

Charger plus