On Fri, Aug 29, 2014 at 10:53 AM, John Cremona wrote:
> pari:
>
> ? isprimepower(1)
> %4 = 0
>
> magma:
>
>>> IsPrimePower(1);
>^
> Runtime error in 'IsPrimePower': Argument 1 (1) should be >= 2
>
> gap> IsPrimePowerInt(1);
> false
>
> I'll let others try Maple.
That seems like en
pari:
? isprimepower(1)
%4 = 0
magma:
>> IsPrimePower(1);
^
Runtime error in 'IsPrimePower': Argument 1 (1) should be >= 2
gap> IsPrimePowerInt(1);
false
I'll let others try Maple.
John
On 29 August 2014 09:50, Vincent Delecroix <20100.delecr...@gmail.com>
wrote:
> What is t
1 is definitely not a prime power. It's basically the same reason that 1
is not a prime.
Some reasons: (1) positive integers are uniqely products of prime powers
(with 1 being the empty product!) Uniqueness would fail if 1 were allowed.
(2) a positive integer n is a prime power iff nZ is a prim
What is the status of 1 in pari, GAP, Maple, Magma, Mathematica?
Vincent
2014-08-29 10:31 UTC+02:00, Jeroen Demeyer :
> Personally, I think "1" should not be considered a prime power, but Sage
> thinks otherwise:
>
> sage: 1.is_prime_power()
> True
>
> Of course, one could argue that 1 = p^0 for
Personally, I think "1" should not be considered a prime power, but Sage
thinks otherwise:
sage: 1.is_prime_power()
True
Of course, one could argue that 1 = p^0 for every prime p...
Should this be changed, any opinions?
--
You received this message because you are subscribed to the Google Gro