Your last test case is accidentally all commented out, so isn't a real test case
hi, my cod gives me true ans but its worked too slow because of for loop but could not figure it out without for loop. could u send me our code or check mines ? function u = euler004(n)
function L = ispalindrome(n)
if str2double(s(i)) == str2double(s(l-i+1))
can anyone explain what is meaning of products of two inputs ,here input is only one number ,does it mean the square of input
Thanks for the note Aurelien. I added to the test suite.
the largest palindrome made from the product of 9999 is 99977999， not 99000099！
and x=999，y=997799, not 906609.
x=2500, y=6249246, not 6167616
x=100, y=999, not 9009
zd c, 99977999 cannot be written as the product of two numbers less than or equal to 9999.
Size 42 ! wow should be the best solution
Replicate elements in vectors
Create a vector whose elements depend on the previous element
Determine the number of odd integers in a vector
select the primes of a vector
Flag largest magnitude swings as they occur
Project Euler: Problem 2, Sum of even Fibonacci
Getting the row and column location from a matrix
Project Euler: Problem 1, Multiples of 3 and 5
Poker Series 06: isThreeKind
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office