- 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
-
Notifications
You must be signed in to change notification settings - Fork 0
lugar004/N-Digit-Prime-Numbers
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Generate N Digit Prime Numbers in CPP Language
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published