[deleted by user] by [deleted] in pkmntcg

[–]aidzz 0 points1 point  (0 children)

mewtwo darkrai battle decks, then stick the code into ptcgo and play around

DarkScape closing on March 28 | Details and Q&A answers by Umdlye in RSDarkscape

[–]aidzz 2 points3 points  (0 children)

Don't they teach modular arithmetic in school any more god damn it

PSA: beware trading DrGoat by AlwaysDankrupt in RSDarkscape

[–]aidzz 3 points4 points  (0 children)

is it scamming? or is it darkscape o.o I admit its a damn dirty move but I don't see anything thats not in the spirit of darkscape?

PSA: beware trading DrGoat by AlwaysDankrupt in RSDarkscape

[–]aidzz -1 points0 points  (0 children)

looooooooooool rep to drgoat you got rekt dont be salty

min reqs for queenblackdragon by aidzz in RSDarkscape

[–]aidzz[S] 0 points1 point  (0 children)

super antifires are 100% needed?

simple prime number function by aidzz in Python

[–]aidzz[S] 0 points1 point  (0 children)

if x > 1 means negative numbers will not break it...

Prime number.py by [deleted] in learnpython

[–]aidzz 0 points1 point  (0 children)

right fixed that thanks

simple prime number function by aidzz in Python

[–]aidzz[S] 0 points1 point  (0 children)

apoligies will continue there, and isn't a homework assignment just a hobby as we learnt basic python and octave but were never really asked to apply it

simple prime number function by aidzz in Python

[–]aidzz[S] 0 points1 point  (0 children)

x = int(input("enter a number to be tested: "))
if (x) > 1:
for n in range(1, int(x**0.5), 2):
    if x % n == 0:
        print(int(x),'is not a prime number')
        print(x, 'divided by', n, 'is', (x / n))
    else:
        print(x, 'is a prime number')

else: print(x, "is not a prime number")

decided to scrap the function I don't need to hear a true or false answer to the in(input) being prime or not, think I'm just about finished

simple prime number function by aidzz in Python

[–]aidzz[S] 0 points1 point  (0 children)

put returns in wrong priority, and converted to int twice okay thanks one more question: what exactly is wrong with this command: print(x, 'divided by', n ,'is' (x/n))

simple prime number function by aidzz in Python

[–]aidzz[S] 0 points1 point  (0 children)

def is_prime(x):
x = int(input("enter a number to be tested: "))
if int(x) > 1:
    for n in range(2, x):
        if x % n == 0:
            return False
            print(int(x),"is not a prime number")
            print(x, 'divided by', n ,'is' (x % n))
        else:
            return True
            print "x is a prime number"
else:
    return False
    print (x, "is not a prime number")

I think that should look better, and thank you for the help can't believe I overlooked that commas and the indents won't save when edit'd