Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9206097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:06:13+00:00 2026-06-18T00:06:13+00:00

I have succeeded in determining which two numbers when multiplied produces a numerical palindrome

  • 0

I have succeeded in determining which two numbers when multiplied produces a numerical palindrome in C#, however I need to sort the products from lowest to highest. Is there anyway to do this?

static void LargestPalindrome()
{
    ulong product = 0;
    ulong compare = 0;
    for (uint i = 100; i < 1000; i++) 
    {
        for (uint j = 100; j < 1000; j++)
        {
            product = i * j;
            StringBuilder value = new StringBuilder(product.ToString());

            //Pass string to reverse
            string value_r = Reverse(value.ToString());

            //Check if Numeric Palindrome
            if(value_r.Equals(value.ToString()) && product>compare)
            {      
                Console.WriteLine("{0} x {1} = {2} in reverse {3}", i, j, value, value_r);
            }
        }
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:06:15+00:00Added an answer on June 18, 2026 at 12:06 am

    The following should suffice. I’ve simply sorted the list of palindromes and printed them to the Console screen.

    static void LargestPalindrome()
    {
        ulong product = 0;
        ulong compare = 0;
        List<ulong> results = new List<ulong>();
        for (uint i = 100; i < 1000; i++) 
        {
            for (uint j = 100; j < 1000; j++)
            {
                product = i * j;
                StringBuilder value = new StringBuilder(product.ToString());
    
                //Pass string to reverse
                string value_r = Reverse(value.ToString());
    
                //Check if Numeric Palindrome
                if(value_r.Equals(value.ToString()) && product>compare)
                {      
                    results.Add(product);
                }
            }
        }
    
        results.Sort();
        foreach (var palindrome in results)
        {
            Console.WriteLine(palindrome);
        }    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to know if all the client-side validator checks have succeeded, or if
Without using p/invoke, from a C++/CLI I have succeeded in integrating various methods of
I have succeeded in generating a sqlite3 database in my android app from an
I have been writing a palindrome finder in C++ and I have succeeded in
I have an application extension which I need to test. Part of the extension
I need to make my output readable. I have succeeded in doing so, for
Currently, i have succeeded in creating the checkbox. The array which i have setup
im trying to import html table data to an excel file and have succeeded
I am using Openlayers to my application. i have succeeded in showing marker when
I am trying to create a windows explorer. I have succeeded in populating the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.