On Fri, Aug 29, 2014 at 10:53 AM, John Cremona <john.crem...@gmail.com> 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 enough of an argument for Sage to return False to me.

 -- William

>
> John
>
>
> On 29 August 2014 09:50, Vincent Delecroix <20100.delecr...@gmail.com>
> wrote:
>>
>> What is the status of 1 in pari, GAP, Maple, Magma, Mathematica?
>>
>> Vincent
>>
>> 2014-08-29 10:31 UTC+02:00, Jeroen Demeyer <jdeme...@cage.ugent.be>:
>> > 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
>> > Groups
>> > "sage-devel" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to sage-devel+unsubscr...@googlegroups.com.
>> > To post to this group, send email to sage-devel@googlegroups.com.
>> > Visit this group at http://groups.google.com/group/sage-devel.
>> > For more options, visit https://groups.google.com/d/optout.
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "sage-devel" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to sage-devel+unsubscr...@googlegroups.com.
>> To post to this group, send email to sage-devel@googlegroups.com.
>> Visit this group at http://groups.google.com/group/sage-devel.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org
wst...@uw.edu

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to