This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <vector> | |
unsigned long long int adjDigProduct(std::vector<int> NUMB, int digits, unsigned long long int biggest); | |
std::vector<int> vectorify(std::string s); | |
int main() | |
{ | |
//initialize variables |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
int findNextPrime(int n); //given a number n, find the next closest prime number above n | |
bool isPrime(int n); //given a number n, determine if it is prime | |
int main() | |
{ | |
int input; | |
std::cout << "Please enter a prime number: "; |