That sounds a bit like Hoare logic [0], refinement calculus [1], or guarded command language [2]. The term "program prime" is not something I've heard or read before and I'm not turning up much.
[0] https://en.wikipedia.org/wiki/Hoare_logic
[0] https://en.wikipedia.org/wiki/Hoare_logic
[0] https://svkarthikwinner.files.wordpress.com/2015/07/practica...