MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

Base 10 Versus Base 16 in Mathematica

  • To: mathgroup at smc.vnet.net
  • Subject: [mg29176] Base 10 Versus Base 16 in Mathematica
  • From: Flip at safebunch.com
  • Date: Fri, 1 Jun 2001 04:15:38 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi All,

is it possible to modify the following function to allow the user to select the
number of bits as opposed to the number of digits?

In[1]:=
Needs["NumberTheory`NumberTheoryFunctions`"]

In[2]:=
RandomPrime[d_] := NextPrime[Random[Integer, {10^(d - 1), 10^d}]]

The operator would select RandomPrime[1024] and this would produce a hexdecimal
output with 1024 bits displayed as a hex number.

Any suggestions?  Thank you ... Wilson



  • Prev by Date: Re: Mathematica to PowerPoint
  • Next by Date: Re: simplex method
  • Previous by thread: Re: Mathematica to PowerPoint
  • Next by thread: Re: Base 10 Versus Base 16 in Mathematica