Test case No. 5
x = 911;
y_correct = 911;
Should the nearest prime number for 911 have been 907?
how i can solve
which is wrong
Look. It's Size 80
I feel for you, typing in those endless arrays of prime numbers.
You have probably figured it out by now, but instead of typing in manually the vectors prim0 and prim1 and then checking memberships, you can just run the function 'isprime(x)' which will save you lots of space and time
Get the area codes from a list of phone numbers
538 Solvers
Given an unsigned integer x, find the largest y by rearranging the bits in x
801 Solvers
Find out sum and carry of Binary adder
405 Solvers
449 Solvers
Van Eck's Sequence's nth member
294 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!