Computer Science, asked by aishwarya1202, 3 months ago

Find if given number is prime in python

Input
First Line contains an integer specifying no. of test cases. Each line contains integers specifying value of number in each test case.

Output
Yes if number is prime. No if not, for each testcase.

Example
Input: 3
2
4
5

Output:
Yes
No
Yes

Answers

Answered by IIAstuteIshII
6

ɧɛƖƖơ ɱąɬɛ

Answer:

ᴘʟᴇᴀsᴇ ʀᴇFᴇʀ ᴛᴏ ᴛʜᴇ ᴀᴛᴛᴀᴄʜᴍᴇɴᴛ Fᴏʀ ᴀɴsᴡᴇʀ

ɴᴏᴛᴇ:

  • Fɪʀsᴛ ᴀᴛᴛᴀᴄʜᴍᴇɴᴛ ᴄᴏɴᴛᴀɪɴs ᴛʜᴇ ᴘʀᴏɢʀᴀᴍ
  • sᴇᴄᴏɴᴅ ᴀᴛᴛᴀᴄʜᴍᴇɴᴛ ᴄᴏɴᴛᴀɪɴs ᴛʜᴇ ᴏᴜᴛᴘᴜᴛ

ɧơ℘ɛ ıɬ ɧɛƖ℘ʂ ყơų  ☺

Attachments:
Similar questions