Skip to content

Permutable Prime A permutable prime is a prime number of two or more digits that remains prime with every possible rearrangement of the digits. For example: Input: 79 Output: true (79 and 97 are both primes) Input: 127 Output: false Input: 337 Output: true (337, 373 and 733 are primes) Write a program to check if the user input is a permutable p…

Notifications You must be signed in to change notification settings

Nvgdsk/PermutablePrime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Permute-Prime

Permutable Prime

A permutable prime is a prime number of two or more digits that remains prime with every possible rearrangement of the digits.

For example: Input: 79 Output: true (79 and 97 are both primes)

Input: 127 Output: false

Input: 337 Output: true (337, 373 and 733 are primes)

Write a program to check if the user input is a permutable prime or not.

About

Permutable Prime A permutable prime is a prime number of two or more digits that remains prime with every possible rearrangement of the digits. For example: Input: 79 Output: true (79 and 97 are both primes) Input: 127 Output: false Input: 337 Output: true (337, 373 and 733 are primes) Write a program to check if the user input is a permutable p…

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages