Raku, 19 bytes
(*Z*(*X**0..*)).sum
Try it online!
Is it concerning that my solution is over 30% asterisks?
Explanation
( ).sum # Get the sum of
*Z*( ) # The inp...
Raku, 33 bytes
{1+(3...{($^a...&is-prime)>=$_})}
Try it online!
Anonymous code block that takes a number and returns a number.
Explanation
{ } # Anony...
Raku, 32 bytes
{map +*,($_,*[0]...^9 ge*.gist)}
Try it online!
It's difficult to tell the difference between one element arrays and just plain numbers, since Raku translates between the two....