This comment is hidden because it contains spoiler information about the solution
this is how you do it without using the default prime_division method.
this is the most obvious solution but not the best algorithm.
agree, this only returns the length of the last palindrom, it doesn't guarantee longest.
Loading collection data...
This comment is hidden because it contains spoiler information about the solution
this is how you do it without using the default prime_division method.
this is the most obvious solution but not the best algorithm.
agree, this only returns the length of the last palindrom, it doesn't guarantee longest.
This comment is hidden because it contains spoiler information about the solution