Comments on Find near miss prime multiples.
Post
Find near miss prime multiples.
+2
−0
Given a number
That is there is a prime in the first
For example if
Since
so we try the next number. , so we try the next number. , so we try the next number. , so we try the next number. , so we try the next number. , so we try the next number. , so we try the next number. , so we try the next number. , so we try the next number. , so we try the next number.
21 satisfies the property so its the answer.
Task
Take as input
This is code-golf. The goal is to minimize the size of your source code as measured in bytes
Test cases
3 -> 4
4 -> 6
5 -> 21
6 -> 155
7 -> 441
2 comment threads