Skip to main content
Clarified a smidge
Source Link
Wheat Wizard
  • 102.9k
  • 23
  • 299
  • 697

The task here is to write a program that takes two inputs, a positive integer nn and a positive integer aa. It will then decide if aa is nn-prime. Your program should output two distinct values one for "yes, it is n-prime" and one for "no, it is not n-prime".

The task here is to write a program that takes two inputs a positive integer n and a positive integer a. It will then decide if a is n-prime. Your program should output two distinct values one for "yes, it is n-prime" and one for "no, it is not n-prime".

The task here is to write a program that takes two inputs, a positive integer n and a positive integer a. It will then decide if a is n-prime. Your program should output two distinct values one for "yes, it is n-prime" and one for "no, it is not n-prime".

edited body
Source Link
Wheat Wizard
  • 102.9k
  • 23
  • 299
  • 697

Here are lists of the first 3031 primes for n=2 to n=12 (1 is the only 1-prime number)

Here are lists of the first 30 primes for n=2 to n=12 (1 is the only 1-prime number)

Here are lists of the first 31 primes for n=2 to n=12 (1 is the only 1-prime number)

Tweeted twitter.com/StackCodeGolf/status/934190495798001664
added 2 characters in body
Source Link
Wheat Wizard
  • 102.9k
  • 23
  • 299
  • 697
  • n is the smallest n-prime.

  • Numbers larger than n are n-prime if they are not divisible by a smaller primen-prime.

  • n is the smallest n-prime.

  • Numbers larger than n are n-prime if they are not divisible by a smaller prime.

  • n is the smallest n-prime.

  • Numbers larger than n are n-prime if they are not divisible by a smaller n-prime.

Source Link
Wheat Wizard
  • 102.9k
  • 23
  • 299
  • 697
Loading