INNER CODE UNIT · Python

main

grafana-cold-storage/phlare · tools/docker-compose/python/main.py:22

def main():
    # start memory profiling
    mprofile.start(sample_rate=128 * 1024)

    # enable pprof http server
    start_pprof_server(host='0.0.0.0', port=8080)

    to = 500
    while True:
        result = prime_number_from_1_to(to)
        print("there are %d prime numbers from 1 to %d" % (len(result), to))
        time.sleep(0.5)

if __name__ == "__main__":
    main()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…