Solved


Find nearest prime number less than input number
Find nearest prime number less than input number. For example: if the input number is 125, then the nearest prime number whi...

16 days ago

Solved


Sophie Germain prime
In number theory, a prime number p is a *Sophie Germain prime* if 2p + 1 is also prime. For example, 23 is a Sophie Germain prim...

16 days ago

Solved


Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

16 days ago

Solved


Project Euler: Problem 10, Sum of Primes
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below the input, N. Thank you <http:/...

17 days ago

Solved


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

17 days ago

Solved


Pi Estimate 1
Estimate Pi as described in the following link: <http://www.people.virginia.edu/~teh1m/cody/Pi_estimation1.pdf>

23 days ago

Solved


Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given number of...

23 days ago

Solved


Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

23 days ago

Solved


Leap Year
According to Gregorian Calender(which is in use now, in many countries),decide whether a given year is a leap year or not. Give...

1 month ago

Solved


Question 1
Implement a function named q1 with one input argument named n. This function should return the multiplication of all odd numbers...

1 month ago

Solved


Resistance of a robot
What is the resistance of an industrial robot that draws P watts of power when connected to a power supply delivering V volts? R...

1 month ago

Solved


Getting logical indexes
This is a basic MATLAB operation. It is for instructional purposes. --- Logical indexing works like this. thresh = 4...

1 month ago

Solved


Add Me To Death (Sum sum sum)
Given certain vector, sum of the input vector, get the sum of 2 adjacent numbers in the input, and sum of the output vector (wh...

1 month ago

Solved


Matrix Pattern 3

1 month ago

Solved


Calculating the Total Resistance in a Series Circuit
Description: In a series circuit, the total resistance is the sum of the individual resistances. This problem asks you to write ...

1 month ago

Solved


Simple Electrical Power Calculation
Calculate the electrical power using the formula: P=V×I where: V is the voltage (in volts) I is the current (in amperes)

1 month ago

Solved


Ohm’s Law - Calculate Resistance
Ohm’s Law states that resistance R can be calculated as:R=V/I​ where: V is the voltage (in volts) I is the current (in ampere...

1 month ago

Solved


Swap Characters of a Single Word
Description: In the given input word, convert the lower case to upper case and vice versa. A to a, a to A ... Example: 'Matl...

1 month ago

Solved


Remove Upper Case Letters
Example Matlab --> atlab proBlem --> prolem Enter --> nter

1 month ago

Solved


String Logic 5
Example: 'CAT' --> 'TAC' 'DOG' --> 'GOD' 'MATLAB' --> 'BALTAM' 'ROSY' --> 'YSOR' 'TRUST' --> 'TSURT' 'MOSTLY' --> 'YLTS...

1 month ago

Solved


String Logic 11
Examples: 'SUNDAY' --> 6 'MONDAY' --> 6 'TUESDAY' --> 7 'WEDNESDAY' --> 9 'THURSDAY' --> 8 'FRIDAY' --> 5 'SATURDAY' --...

1 month ago

Solved


Remove Lower Case Letters
Example MEMOry --> MEMO IMPlEMeNtATiON --> IMPEMNATON

1 month ago

Solved


Sum of series
a(n) = n^2 - (n-1)^2 find the summation of the series upto n i.e. a(1)+a(2)+...+a(n)

1 month ago

Solved


The MATLAB Treasure Hunt – Unlock the Final Chamber by Solving the Ancient Numeric Cipher
You’ve reached the Final Chamber, where a glowing pedestal displays a sequence of numbers. The inscription reads: “Only the su...

1 month ago

Solved


The MATLAB Treasure Hunt – Escape the Labyrinth of Logic by Unlocking the Correct Door Sequence
You enter the Labyrinth of Logic, where each door opens only if a secret rule is met. A vector of integers represents door code...

1 month ago

Solved


The MATLAB Treasure Hunt – Locate the Hidden Treasure in the Chamber of Coordinates
Inside the Chamber of Coordinates, glowing runes show several coordinate points on a 2D grid. The treasure lies closest to the ...

1 month ago

Solved


The MATLAB Treasure Hunt – Cross the River of Ratios by Finding Successive Proportions in the Data Stream
Following the glowing script, you arrive at the River of Ratios — a flowing stream of numbers. A carved message on the rocks re...

1 month ago

Solved


The MATLAB Treasure Hunt – Decode the Ancient Script by Removing Strange Symbols from the Message
Emerging from the Maze of Numbers, you find a tablet etched with symbols and letters — an Ancient Script! The message is hidden...

1 month ago

Solved


The MATLAB Treasure Hunt – Identify the Hidden Pattern Within the Maze of Numbers
The compass leads you to an underground chamber covered in numbers carved into the walls — a maze of digits that glows in myster...

1 month ago

Solved


The MATLAB Treasure Hunt – Fix the Broken Compass by Normalizing Its Angle Readings
Your compass, recovered from the Hidden Cave, spins wildly! The ancient device shows angles that exceed 360° or drop below 0°. T...

1 month ago

Load more