midify variables in lprimes()
as.formals() checks invalid inputs.