Search:

Type: Posts; User: Warren Hill; Keyword(s):

Search: Search took 0.17 seconds.

  1. Replies
    16
    Views
    994

    Re: For the math nerds...

    True

    Instead of

    if ( x * y == P)

    if (x % y ==0)

    or
  2. Replies
    16
    Views
    994

    Re: For the math nerds...

    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--){
  3. Replies
    16
    Views
    994

    Re: For the math nerds...

    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
Results 1 to 3 of 3