谁能帮我解一下这道程序题,请用c++语言.
问题描述:
谁能帮我解一下这道程序题,请用c++语言.
Problem Description A number whose only prime factors are 2,3,5 or 7 is called a humble number.The sequence 1,2,3,4,5,6,7,8,9,10,12,14,15,16,18,20,21,24,25,27,...shows the first 20 humble numbers.Write a program to find and print the nth element in this sequence Input The input consists of one or more test cases.Each test case consists of one integer n with 1
答
#include <iostream>using namespace std;const int SIZE = 5842;int main() {int humbernumber[SIZE];int ptr[4][2] = { { 2...