Check if a number is a product of consecutive integer numbers
Java - 124

String f(int t){int s=2,h=3,p=s,i;String o=&quot;&quot;;for(;p!=t&amp;&amp;s*s&lt;t;p=p&lt;t?p*h++:p/s++);if(p==t)for(i=s;i&lt;h;o+++=i+&quot; &quot;);return o;}

Starting at 2, this loops until the start number is &gt; the square root of the target (or target is reached exactly). If the product is low, it multiplies by the high number and increments it. If high, it divides by the starting number and increments it.
For example, for 30, it would check:
2*3     = 6 (too low, multiply)
2*3*4   = 24 (too low, multiply)
2*3*4*5 = 120 (too high, divide)
3*4*5   = 60 (too high, divide)
4*5     = 20 (too low, multiply)
4*5*6   = 120 (too high, divide)
5*6     = 30 (bingo!)

Outputs a space-separated string of factors in ascending order.
With line breaks:
String p(int t){
    int s=2,h=3,p=s,i;
    String o=&quot;&quot;;
    for(;p!=t&amp;&amp;s*s&lt;t;p=p&lt;t?p*h++:p/s++);
    if(p==t)
        for(i=s;i&lt;h;o+=i+&quot; &quot;);
    return o;
}