Well, you can look at the Prime Omega function : $\Omega(n)$ maps to the number of prime factors of n. This is not a function that goes from 0 to 1, but such a function is not possible I think.
It is impossible for one major reason : Take, for exemple the number $n!$, it has as many prime factors as you want (you just have to increase $n$). So, if you create a number $\psi \in \mathbb{N}$ such that $f(\psi)=1$ where $f$ is the function of your dreams. Then what is $f(\psi!)$ ? Knowing that $\psi!$ has much, much more prime factors than $\psi$, we will have $f(\psi!)>f(\psi)=1$ so your function isn't bounded.
Now, if what you want is a function that say "how much" a prime is divisible, you can take $k(n) = (\Omega(n)-1)/n$ which is very interesting too ! This function measure how much a number is divisible compared to the value of this number.
If $p$ is a prime number, then $k(p)=0$ and if $k(n)=1$ for some $n$, then it means $n$ is extremely divisible. In fact, this number is so divisible, that it has more factors than its own value, which I think is totally impossible.
The more $n$ is divisible compared to its own value, the more $k(n)$ will be high.
Edit : notice that $k(1) = -1$ because $1$ is not a prime number but it has many properties of it, for exemple, it is divisible by $1$ and itself, but no other number. $1$ is a very special case.