C++ isPrime() 문서의 역사

차이 선택: 비교하려는 판의 라디오 상자를 선택한 다음 엔터나 아래의 버튼을 누르세요.
설명: (최신) = 최신 판과 비교, (이전) = 이전 판과 비교, 잔글= 사소한 편집

  • 최신이전 2024년 1월 4일 (목) 23:26Jmnote 토론 기여 451 바이트 +451 새 문서: ==개요== ;C++ isPrime() <syntaxhighlight lang='cpp' run> #include <iostream> using namespace std; bool isPrime(int x) { if(x < 2) return false; for(int i=2; i*i<=x; i++) {...