China's patent law stipulates that computer programs cannot be patented.
Because a computer program is a prescribed sequence of instructions, it ignores the scope of copyright protection.
However, a patent right may be granted to a "technical scheme" which is realized by a computer program and solves the problems existing in the prior art and obtains corresponding technical effects. That is, the design idea, principle or process of writing a computer program can be granted a patent right.
Perhaps the meaning of EU patent law is similar to the above.
The above opinions are for reference only, and it is safer to consult foreign-related patent agencies.