Skip to main content
edited tags; edited title
Link
Martin Ender
  • 198.3k
  • 67
  • 455
  • 999

First x Additive Primes amongst first x Primes

Tweeted twitter.com/StackCodeGolf/status/838540658042417154
deleted 38 characters in body
Source Link
Riker
  • 7.9k
  • 4
  • 40
  • 73

Definition of Ultraprimes Additive Primes:

  • Numbers which have exactly 2 divisors are called Prime numbers.

  • Numbers which are prime and their sum of digits is also a prime number are called Ultraprimes Additive Primes

Definition of Ultraprimes Additive Primes:

  • Numbers which have exactly 2 divisors are called Prime numbers.

  • Numbers which are prime and their sum of digits is also a prime number are called Ultraprimes Additive Primes

Definition of Additive Primes:

  • Numbers which have exactly 2 divisors are called Prime numbers.

  • Numbers which are prime and their sum of digits is also a prime number are called Additive Primes

small notation fixes
Source Link
Mr. Xcoder
  • 42.9k
  • 9
  • 87
  • 221

First x Ultraprime NumbersAdditive Primes amongst first x Primes

Definition of UltraprimesUltraprimes Additive Primes:

  • Numbers which have exactly 2 divisors are called Prime numbers.

  • Numbers which are prime and their sum of digits is also a prime number are called Ultaprime numbers(known asUltraprimes Additive Primes).Additive Primes

Given an integer x, compute all the ultraprime numbersadditive primes amongst the first x prime numbers, with 2 being considered both the first prime and ultraprimeadditive prime number. The numbers are represented in base 10.

  • The output consists of all the ultraprime numbersadditive primes amongst the first x primes
  • 0 < x < 151, for this challenge, for functionality purposes
  • Since the ultraprimesadditive primes are all integers, decimals are not allowed (e.g.: you should output 2, not 2.0) and they must not be displayed as a fraction.

The first 10 primes are 2 3 5 7 11 13 17 19 23 29, and only 2 3 5 7 11 23 29 have their sum of digits prime numbers, those being, respectively 2,3,5,7,2,5,11, so they'rethey are ultraprimesadditive primes

First x Ultraprime Numbers

Definition of Ultraprimes:

  • Numbers which have exactly 2 divisors are called Prime numbers.

  • Numbers which are prime and their sum of digits is also a prime number are called Ultaprime numbers(known as Additive Primes).

Given an integer x, compute all the ultraprime numbers amongst the first x prime numbers, with 2 being considered both the first prime and ultraprime number. The numbers are represented in base 10.

  • The output consists of all the ultraprime numbers amongst the first x primes
  • 0 < x < 151, for this challenge, for functionality purposes
  • Since the ultraprimes are all integers, decimals are not allowed (e.g.: you should output 2, not 2.0) and they must not be displayed as a fraction.

The first 10 primes are 2 3 5 7 11 13 17 19 23 29, and only 2 3 5 7 11 23 29 have their sum of digits prime numbers, those being, respectively 2,3,5,7,2,5,11, so they're ultraprimes

First x Additive Primes amongst first x Primes

Definition of Ultraprimes Additive Primes:

  • Numbers which have exactly 2 divisors are called Prime numbers.

  • Numbers which are prime and their sum of digits is also a prime number are called Ultraprimes Additive Primes

Given an integer x, compute all the additive primes amongst the first x prime numbers, with 2 being considered both the first prime and additive prime number. The numbers are represented in base 10.

  • The output consists of all the additive primes amongst the first x primes
  • 0 < x < 151, for this challenge, for functionality purposes
  • Since the additive primes are all integers, decimals are not allowed (e.g.: you should output 2, not 2.0) and they must not be displayed as a fraction.

The first 10 primes are 2 3 5 7 11 13 17 19 23 29, and only 2 3 5 7 11 23 29 have their sum of digits prime numbers, those being, respectively 2,3,5,7,2,5,11, so they are additive primes

added 85 characters in body
Source Link
Mr. Xcoder
  • 42.9k
  • 9
  • 87
  • 221
Loading
added 40 characters in body
Source Link
Mr. Xcoder
  • 42.9k
  • 9
  • 87
  • 221
Loading
deleted 231 characters in body
Source Link
Mr. Xcoder
  • 42.9k
  • 9
  • 87
  • 221
Loading
deleted 3 characters in body
Source Link
Riker
  • 7.9k
  • 4
  • 40
  • 73
Loading
deleted 231 characters in body
Source Link
Mr. Xcoder
  • 42.9k
  • 9
  • 87
  • 221
Loading
added 123 characters in body
Source Link
Mr. Xcoder
  • 42.9k
  • 9
  • 87
  • 221
Loading
deleted 584 characters in body
Source Link
Riker
  • 7.9k
  • 4
  • 40
  • 73
Loading
added 68 characters in body
Source Link
Mr. Xcoder
  • 42.9k
  • 9
  • 87
  • 221
Loading
deleted 214 characters in body
Source Link
Mr. Xcoder
  • 42.9k
  • 9
  • 87
  • 221
Loading
Source Link
Mr. Xcoder
  • 42.9k
  • 9
  • 87
  • 221
Loading