A résolu


Factorial

plus de 3 ans il y a

A résolu


F.R.I.E.N.D.S

plus de 3 ans il y a

A résolu


sign function

plus de 3 ans il y a

A résolu


Array Concatenation (1)
Given two matrices, a and b, concatenate the two matrices horizontally, i.e., the number of columns of the result should be equa...

plus de 3 ans il y a

A résolu


Spherical Volume
Calculate the volume of a sphere.

plus de 3 ans il y a

A résolu


Kinetic Energy
Given mass, m, and kinetic energy, KE, find the velocity of the object.

plus de 3 ans il y a

A résolu


cube of number
find cube of number

plus de 3 ans il y a

A résolu


Evaluate the prime zeta function

plus de 3 ans il y a

A résolu


Evaluate the gamma function
The gamma function is a generalization of the factorial, and it appears in many applications such as evaluating certain integral...

plus de 3 ans il y a

A résolu


Penny Flipping: Reverse subsets of a sequence of coins until you recover the original configuration
The original Penny Flipping Problem (PF-1) starts with a stack of N pennies arranged with all the coins heads up. The first oper...

plus de 3 ans il y a

A résolu


Identify Ruth-Aaron numbers
After Hank Aaron hit his 715th home run and passed Babe Ruth’s total of 714, Carl Pomerance noticed that the union of the prime ...

plus de 3 ans il y a

A résolu


Fill a rectangle with 1x1 and 2x2 tiles
A 3x2 rectangle can be filled with 1x1 and 2x2 tiles in three ways: The colors merely distinguish the sizes of the tiles. A 3...

plus de 3 ans il y a

A résolu


List Honaker primes
The number 131 is the 32nd prime number. It is a Honaker prime because the sum of its digits (1+3+1) equals the sum of the digit...

plus de 3 ans il y a

A résolu


Pairwise Euclidean Distance
Given two matrices A,B of dimensions NxK and NxL respectively, calculate the pairwise euclidean distance of all vectors (columns...

plus de 3 ans il y a

A résolu


Addition Partition
You will be given two numbers, N and K. Write a MATLAB function that will determine how many different unique ways you can have...

plus de 3 ans il y a

A résolu


Factorizing a number into a given number of factors
Given a positive integer, n, and another positive integer, b, return a matrix, M, of width b, with the following properties: (a)...

plus de 3 ans il y a

A résolu


Penny Distribution Machine
A machine consists of a row of boxes. To start, one places N pennies in the leftmost box. The machine then redistributes the pen...

plus de 3 ans il y a

A résolu


List the good primes
The th prime is classified as “good” if for . For example, 5 is a good prime because is greater than and , but 7 is not beca...

plus de 3 ans il y a

A résolu


List the delete-a-digit primes

plus de 3 ans il y a

A résolu


Identify full reptend primes

plus de 3 ans il y a

A résolu


Test the generalized Legendre conjecture

plus de 3 ans il y a

A résolu


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

plus de 3 ans il y a

A résolu


Set Soldner's constant

plus de 3 ans il y a

A résolu


Evaluate the logarithmic integral
The <https://en.wikipedia.org/wiki/Logarithmic_integral_function logarithmic integral> li(x) plays a role in number theory becau...

plus de 3 ans il y a

A résolu


Construct a prime circle
A <https://mathworld.wolfram.com/PrimeCircle.html prime circle> is a circular arrangement of the numbers 1 to 2n such that pairs...

plus de 3 ans il y a

A résolu


Investigate the frequency of last digits of prime numbers
The last digit of a prime number greater than 5 can be 1, 3, 7, or 9. If the primes are distributed randomly, then these digits ...

plus de 3 ans il y a

A résolu


Next lexicographic - permutation
Find next lexicographic - permutation (permutations as it would occur in a dictionary order). E.g: nextP('ABCD') = ABDC If you...

plus de 3 ans il y a

A résolu


Possible Outcomes of American Roulette
The payout for American roulette can be calculated by: payout = (38/n)-1 where n is the number of squares the bet covers. ...

plus de 3 ans il y a

Charger plus