/* by ESP bbaddo 3.April.2021 입력범위 1 ~ 18,446,744,073,709,551,615 unsigned long long */ #include <stdio.h> #include <iostream> #include <sstream> #include <string> using namespace std; template <typename T> //소수점12자리까지 문자열로 변환 string to_string_with_precision(const T value, const int n = 12) { ostringstream out; out.precision(n); out << std::fixed << value; return out.str(); } template <typename T> //천단위 쉼표, 여기서 unsigned long long 만 쓰지만 템플레이트로 구현 string sep_thousands(const T value) { const char* locale_name = "english"; #ifdef WINDOWS locale_name = "korean"; #endif ostringstream out; out.imbue(locale(locale_name)); out << value; return out.str(); } string checkPrimeNumber(unsigned __int64); int main() //실행 ctrl + F5 { unsigned __int64 inputNumber = 0; while(true) { cout << "******* 소수 prime number 판별기 *******" << endl; cout << "입력 : "; ...