编写一函数prime实现判断一个正整数是否为素数。要求在主函数main中输入一个正整数,并输出是否素数的信息。例如:若输入11,则输出YES;若输入10,则输出NO。
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/810597.html
上一篇:Mark Twain is a great literary giant of America, whom H. L. Mencken considered “_______________of our national literature.”
下一篇:To survive in the fierce competition, we must _________ the quality and variety of our products to the world-market demand.