Find all integers $n$ with $1<n<1979$ having the following property: If $m$ is an integer coprime with $n$ and $1<m<n$, then $m$ is a prime number.
1. **Define the problem and the property:**
   We need to find all integers \( n \) with \( 1 < n < 1979 \) such that if \( m \) is an integer coprime with \( n \) and \( 1 < m < n \), then \( m \) is a prime number.

2. **Introduce the concept of a "good" integer:**
   Call a positive integer \( n \) "good" if it satisfies the required property.

3. **Claim:**
   \[
   \forall n \geq 4, \quad p_1 p_2 \cdots p_n > p_{n+1}^2
   \]
   where \( p_i \) is the \( i \)-th smallest prime.

4. **Proof by induction:**
   - **Base case:**
     For \( n = 4 \), we have \( p_1 p_2 p_3 p_4 = 2 \cdot 3 \cdot 5 \cdot 7 = 210 \) and \( p_5^2 = 11^2 = 121 \). Clearly, \( 210 > 121 \).

   - **Inductive step:**
     Assume the claim is true for \( n = k \). Let \( a = p_1 p_2 \cdots p_{k+1} \) and \( S = \sqrt{\frac{a}{4}} \). By Chebyshev's theorem, there exists a prime \( q \) in the interval \([S, 2S-2]\). By our assumption:
     \[
     S^2 = \frac{1}{4} p_1 p_2 \cdots p_{k+1} > \frac{1}{4} p_{k+1}^3 > p_{k+1}^2
     \]
     This implies \( q^2 > p_{k+1}^2 \). Therefore:
     \[
     a = (2S)^2 > q^2 > p_{k+1}^2
     \]
     Hence, by induction, the claim is correct. \(\blacksquare\)

5. **Analysis of \( n \):**
   Let \( p_k \) be the largest prime that divides \( n \), and let \( p_i \) be the smallest prime that does not divide \( n \). By Chebyshev's theorem, the ratio of consecutive primes is less than 2.

6. **Case analysis:**
   - **Case 1:** \( i = 1 \). Then \( 4 < n \), but 4 is not a prime and is coprime with \( n \).
   - **Case 2:** \( i = 2 \). Then \( 9 < 14 \leq n \), but 9 is not a prime and is coprime with \( n \).
   - **Case 3:** \( i = k+1 \). By our claim, \( p_{k+1}^2 < n \), but \( p_{k+1}^2 \) is not a prime and is coprime with \( n \).
   - **Case 4:** \( 3 \leq i \leq k-1 \). We know that \( p_i^2 < 2p_{i-1}p_k \), but \( p_i^2 \) is not a prime and is coprime with \( n \).

7. **Conclusion:**
   The only good \( n \)'s can be written as \( n = 2^a 3^b 5^c \) where \( a, b, c \) are non-negative integers. It is easy to see that \( n \leq 49 \) must be satisfied. After checking all possibilities, we find that the only good \( n \)'s are:
   \[
   n = 2, 3, 4, 6, 12, 18, 24, 30
   \]

The final answer is \(\boxed{2, 3, 4, 6, 12, 18, 24, 30}\)