You are looking for a number that will produce the product of two primes: or a cube of a prime. Since your numbers are small, you can simply make a short table of primes from 2 to 500. Then, starting at 2, multiply each number by each of the primes above it until you exceed the upper limit.
Edit: Is this homework? If so, I probably already said too much. If this is not the case, I can provide some code or pseudo-code if my answer does not make sense.
: , : . . ( , , .)
:
for ( p1 is a prime in your list, except for the last) {
if p1 cubed is in your range, add it to the answer
for (p2 is a prime in your list greater than p1) {
if p2*p1 is in your range, add it to the answer
}
}
, , . ( 292 0 1000. --- 95 .)