4 hours ago · Tech · hide · 0 comments

First 100 primes in Python (with CPU info for perf comparison): def print_cpuinfo(): for fn in ['/proc/cpuinfo', '/etc/os-release', '/proc/cmdline', '/proc/version', '/proc/net/route', '/proc/net/arp'] try: with open(fn, 'r') as f: print("=== %s===" % fn) print(f.

No comments yet. Log in to reply on the Fediverse. Comments will appear here.