倍數成長年限=72/成長率
真是這麼神奇?
Code:
|
Result:
|
結論:
成長率在6或以下就準確,在7到36需要加1
|
|
|
|
|
|
|
|
|
/etc/profile.d/term.sh
#!/bin/bash |
Refer:http://fasterdata.es.net/host-tuning/ms-windows/
|
|
|
import math for n in range(2, 100): o = n s = set() i = 2 j = math.floor(n) while i < j: if o % i == 0: s.add(i) o //= i else: i+=1 if len(s): print(n, ':' ,','.join(str(v) for v in sorted(s))) else: print(n, ' is a prime number')
2 is a prime number 3 is a prime number 4 : 2 5 is a prime number 6 : 2,3 7 is a prime number 8 : 2 9 : 3 10 : 2,5 11 is a prime number 12 : 2,3 13 is a prime number 14 : 2,7 15 : 3,5 16 : 2 17 is a prime number 18 : 2,3 19 is a prime number 20 : 2,5 21 : 3,7 22 : 2,11 23 is a prime number 24 : 2,3 25 : 5 26 : 2,13 27 : 3 28 : 2,7 29 is a prime number 30 : 2,3,5 31 is a prime number 32 : 2 33 : 3,11 34 : 2,17 35 : 5,7 36 : 2,3 37 is a prime number 38 : 2,19 39 : 3,13 40 : 2,5 41 is a prime number 42 : 2,3,7 43 is a prime number 44 : 2,11 45 : 3,5 46 : 2,23 47 is a prime number 48 : 2,3 49 : 7 50 : 2,5 51 : 3,17 52 : 2,13 53 is a prime number 54 : 2,3 55 : 5,11 56 : 2,7 57 : 3,19 58 : 2,29 59 is a prime number 60 : 2,3,5 61 is a prime number 62 : 2,31 63 : 3,7 64 : 2 65 : 5,13 66 : 2,3,11 67 is a prime number 68 : 2,17 69 : 3,23 70 : 2,5,7 71 is a prime number 72 : 2,3 73 is a prime number 74 : 2,37 75 : 3,5 76 : 2,19 77 : 7,11 78 : 2,3,13 79 is a prime number 80 : 2,5 81 : 3 82 : 2,41 83 is a prime number 84 : 2,3,7 85 : 5,17 86 : 2,43 87 : 3,29 88 : 2,11 89 is a prime number 90 : 2,3,5 91 : 7,13 92 : 2,23 93 : 3,31 94 : 2,47 95 : 5,19 96 : 2,3 97 is a prime number 98 : 2,7 99 : 3,11 |
vga=0xF07 |
#!/bin/bash #no blank screen setterm -blank 0 # use bigger font setfont /usr/share/consolefonts/UniCyr_8x14.psf.gz tail -f /var/log/messages |
Edit the row: c1:12345:respawn:/sbin/agetty 38400 tty1 linux > c1:12345:respawn:/sbin/agetty 38400 tty1 linux -n -l /sbin/tailLog |
# This blank configuration will automatically use DHCP for any net.* # scripts in /etc/init.d. To create a more complete configuration, # please review /usr/share/doc/openrc*/net.example* and save your configuration # in /etc/conf.d/net (this file :]!). modules="ifconfig" dns_servers_eth0="192.168.1.254" config_eth0="192.168.1.234 netmask 255.255.255.0" routes_eth0="default via 192.168.1.254" |
#append this row kernel.domainname = local |
# Set to the hostname of this machine hostname="gentoo" |
LILO version 22.8, Copyright (C) 1992-1998 Werner Almesberger Development beyond version 21 Copyright (C) 1999-2006 John Coffman Released 19-Feb-2007 and compiled at 09:05:22 on Apr 11 2012 Warning: LBA32 addressing assumed Reading boot sector from /dev/sda Using MENU secondary loader Calling map_insert_data Boot image: /boot/linux-3.2.1-gentoo-r2 Added gentoo Boot image: /boot/linux-3.2.2-hardened-r1 Added hardened * Writing boot sector. /boot/boot.0800 exists - no boot sector backup copy made. One warning was issued. |