In discussing the unique factorization of numbers in Elementary Number Theory, Underwood Dudley devised a new number system:
“Consider the integers 1, 5, 9, 13, 17,…; that is, all integers of the form
,
We will call an element of this set prome if it has no divisors other than 1 and itself in the set. For example, 21 is prome, whereas
is not."
Write a function to determine whether a number is prome. Take 1 to be not prome.
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers9
Suggested Problems
-
Find the longest sequence of 1's in a binary sequence.
6803 Solvers
-
Create a vector whose elements depend on the previous element
798 Solvers
-
Split a string into chunks of specified length
2129 Solvers
-
Pattern Recognition 1 - Known Unit Length
74 Solvers
-
Sums of cubes and squares of sums
375 Solvers
More from this Author325
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Underwood Dudley seems to be prone (prome?) to joking -- as befits anyone bearing such a cromulent name --: these are usually called Hilbert primes or S-primes instead.