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

  • SEARCH
  • Home
  • 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 8788981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:16:40+00:00 2026-06-13T22:16:40+00:00

There is the problem of trying to see if two unique strings are anagrams

  • 0

There is the problem of trying to see if two unique strings are anagrams of each other. The first solution that I had considered would be to sort both strings and see if they were equal to each other.

I have been considering another solution and I would like to discuss if the same would be feasible.

The idea would be to assign a numerical value to each character and sum it up such that a unique set of characters would produce a unique value. As we are testing for anagrams, we do not mind if the checksum of “asdf” and “adsf” are the same — in fact, we require it to be that way. However the checksum of strings “aa” and “b” shouldn’t be equal.

I was considering assigning the first 52 prime numbers to alphabets “a” through “z” and then “A” through “Z”(assume we only have alphabets).

The above scheme would break if the sum of any two or more primes in the set of 52 primes could result in another prime existing in the set.

My doubts are :-

  1. Is there any numbering scheme that would satify my requirements?
  2. I’m unsure about the math involved ; is it possible to prove/is there any proof that suggests that the sum of two or more primes in the set of the first 52 primes has at least one value that exists in the same set?

Thanks.

  • 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-13T22:16:41+00:00Added an answer on June 13, 2026 at 10:16 pm

    Use multiplication instead of addition. Primes are “multiplicatively unique”, but not “additively unique”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get two images adjacent to each other to look like a
I have a problem trying to get some code that returns unique answers to
I am trying to fire below query... Is there any problem in it? delete
There is one problem occurring when I am trying to dynamically generate the label
My problem is: There is a collection of users. Im trying to find, does
I was trying out some exercises of db-class.org videos.There was one problem of finding
This is a simplified version of the problem I am trying to solve: There
I am trying to run PHPUnit test at CakePHP 2.0. There's no problem with
I've been trying to install BNF converter from cabal, however there is a problem
Im trying to render emails on my site. The problem is that these emails

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.