Ask Experts Questions for FREE Help !
Ask
    raghava573's Avatar
    raghava573 Posts: 1, Reputation: 1
    New Member
     
    #1

    Jan 25, 2014, 10:27 AM
    Series of numbers with adjacent elements sum as prime number
    1.should take input digit from user
    2.should print series of numbers with adjacent elements sum as prime num
    3.should print all possible sequence of numbers
    For ex:
    If use enter 4
    4123
    1234
    4321
    4132
    2143
    2341
    3214
    3412
    ebaines's Avatar
    ebaines Posts: 12,131, Reputation: 1307
    Expert
     
    #2

    Jan 25, 2014, 12:11 PM
    Please clarify your question. I don't follow how the sequence works. How does a starting digit of 4 generate 4123? And what do you mean by "adjacent elements?" The sum of numbers "adjacent" to 4123 is not prime: 4122+ 4124= 8246. Clearly you must have something else in mind.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

I need to auto generate sequential numbers based on the adjacent cell info [ 4 Answers ]

For instance: When I have info in CELL B4 I need an auto generated number in CELL B5 starting with 2000 CELL B4 CELL B5 PFP 2000 PL 2001 STD 2002

What two prime numbers, if multiplied, would generate a 400-digit number? [ 3 Answers ]

What two numbers, if multiplied, would generate a 400-digit number?

Prime numbers 400-digit number [ 26 Answers ]

I need to find 2 prime numbers that, if multiplied, would generate a 400-digit number. Any idea how to go about this. I have all the prime numbers but no matter what I do I do not get 400. Am I looking at this question wrong maybe? Thanks ::confused:

Prime numbers and number theory [ 8 Answers ]

Show that: n^4+4 cannot be prime for n>3.


View more questions Search