1 is not a prime number!

My doubt is since we know that one is not a prime no. still the flowchart and pseudocode will get executed for 1 and output will come as 1 is a prime number.
Here, in flowchart if n=1 then the condition i < n will become false and directly prints one is prime no. So i want to ask why 1 is a prime no.