True
Instead of
if ( x * y == P)
if (x % y ==0)
or
Type: Posts; User: Warren Hill; Keyword(s):
True
Instead of
if ( x * y == P)
if (x % y ==0)
or
Sorry you are correct I am missing a few 5s
If we take total pixels P = 480000 for example
Then in C
int x,y;
for (x = sqrt(P); x > 0; x--){
Not a programming solution as such but a simple math based approach.
You know the number of pixels in the image say
p = 480000
Now factorise it
p = 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 3 x 5