Find the smallest natural number $n$ for which the number $n^2-n+11$ has exactly four prime factors (not necessarily distinct).
Source: Bulgaria 1986 P1
Tags: number theory
Find the smallest natural number $n$ for which the number $n^2-n+11$ has exactly four prime factors (not necessarily distinct).