Skip to content

lugar004/N-Digit-Prime-Numbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

N-Digit-Prime-Numbers

  1. Generate N digit prime numbers. A digit prime. is a prime number whose sum of digits is also prime. For example the prime number 41 is a digit prime because 4 + 1 = 5 and 5 is a prime number. 17 is not a digit prime because 1 + 7 = 8, and 8 is not a prime number. 997 is also a digit prime, 997 = 9+9+7=25=2+5=7. Test case 1: Input: N = 6 Output: 2 3 5 7 11 23 Test case 2: Input: N = 10 Output: 2357 11 23 29 41 43 47

About

Generate N Digit Prime Numbers in CPP Language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages