codeforces/577C_game.py
def calculate(self):
        """ Main calcualtion function of the class """

        result = []
        for (i, k) in enumerate(self.pf):
            if k != 0 or i < 2:
                continue
            cur = i
            while cur <= self.n:
                result.append(cur)
                cur *= i

        return str(len(result)) + "\n" + " ".join(map(str, result))
 Main calcualtion function of the class 
Main calcualtion function of the class
Main calcualtion function of the class
def calculate(self):
        result = []
        for (i, k) in enumerate(self.pf):
            if k != 0 or i < 2:
                continue
            cur = i
            while cur <= self.n:
                result.append(cur)
                cur *= i
        return str(len(result)) + "\n" + " ".join(map(str, result))
def calculate ( self ) : result = [ ] for ( i , k ) in enumerate ( self . pf ) : if k != 0 or i < 2 : continue cur = i while cur <= self . n : result . append ( cur ) cur *= i return str ( len ( result ) ) + "\n" + " " . join ( map ( str , result ) )
Main calcualtion function of the class
Main calcualtion function of the class
""" Main calcualtion function of the class """
self