Is it a Sphenic Number? A Sphenic Number is a number that is the product of exactly three distinct primes. The first few Sphenic numbers are 30, 42, 66, 70, 78, 102, 105, 110, 114. This is sequence A007304 in the OEIS.  

Your Task:

Write a program or function to determine whether an inputted integer is a Sphenic number.  

Input:

An integer between 0 and 10^9, which may or may not be a Sphenic Number.  

Output:

A truthy/falsy value indicating whether the input is a Sphenic Number.  

Examples:

30  -&gt; true
121 -&gt; false
231 -&gt; true
154 -&gt; true
4   -&gt; false
402 -&gt; true
79  -&gt; false
0   -&gt; false
60  -&gt; false
64  -&gt; false
8   -&gt; false
210 -&gt; false


Scoring:

This is code-golf, shortest code in bytes wins.
bash, 43 bytes

factor $1|awk '{print $2-$3&amp;&amp;$3-$4&amp;&amp;NF==4}'


Try it online!

Input via command line argument, outputs 0 or 1 to stdout.

Fairly self-explanatory; parses the output of factor to check that the first and second factors are different, the second and third are different (they're in sorted order, so this is sufficient), and there are four fields (the input number and the three factors).