Prime Number Problem

Sir, I tried doing the 2nd question of the assignment, but when I try using the loop and dividing the input number ‘N’ by i=2 (and then increasing it by 1 till max limit 7), I can’t find a way to get out of the loop, as the condition I used here in the decision box was ‘is N/i?’. Could you help me understand how to solve this problem?

please share the code for the same or if u have made a flowchart on pen and paper please upload a pic

so that i can help u understand better

This is the picture ma’am, I can’t understand how to get out of the loop here and print that since the number is not divisible by any digit from 2-7, it is a prime number.

This is the link to the image, there was some issue uploading the pic here so…