All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Digit Representation of a Duodecimal Prime Number (Posted on 2024-07-02) Difficulty: 3 of 5
Determine the maximum value of a duodecimal prime number N, such that none of the digits in the base 12 representation of N2 occur more than once.

See The Solution Submitted by K Sengupta    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution Computer solution Comment 1 of 1
N = 846977 
N^2 = 717370038529 
Base 12:  B7045936281

-----------
for n in range(12**6 - 1 , 0 , -2):
    if not isprime(n):
        continue
    s = n**2
    x = base2base(s,10,12)
    if len(x) == len(set(x)):
        print(n, s, x)
        break

  Posted by Larry on 2024-07-03 00:17:06
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (3)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information