from sympy import isprime from flask import Flask, render_template app = Flask(__name__) @app.route('/') @app.route('/index') def index(): numbers = range(1,25) return render_template('colorful-primes.html', title='Primes', numbers=numbers, isprime=isprime) if __name__ == '__main__': app.run()