Vader’s identity was always likely to be a big surprise twist of some sort - though not originally him being the same person as Father Skywalker. Prowse probably just arrived at the solution that Lucas also ultimately hit on.
Maybe he even asked George at one point and George’s response was noncommittal enough for him to realize it was on the money. Hell, maybe Prowse even gave Lucas the idea.