Execute Python Code Free Full Access

(no tags)

    Algorithmia Platform License · Internet Access · Calls Other Algorithms

    Run an Example

    {
      "primes": [
        2,
        3,
        5,
        7,
        11,
        13,
        17,
        19,
        23,
        29,
        31,
        37,
        41,
        43,
        47,
        53,
        59,
        61,
        67,
        71,
        73,
        79,
        83,
        89,
        97,
        101,
        103,
        107,
        109,
        113,
        127,
        131,
        137,
        139,
        149,
        151,
        157,
        163,
        167,
        173,
        179,
        181,
        191,
        193,
        197,
        199
      ],
      "n": 200
    }

    Install & Use

    Use
    
    curl -X POST -d '"n = 200\nprimes=sorted(set(range(2,n+1)).difference(set((p * f) for p in range(2,int(n**0.5) + 2) for f in range(2,(n/p)+1))))"' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/WayneS/ExecutePythonCodeFreeFullAccess/0.1.0