算法1
对整数n在[2,n-1],中做除法,如果出现能被整除的数,则n为合数,否则为素数。
#include<stdio.h>
int IsPrime(int n){int i;for (i 2;i < n;i){if (n % i 0)break;}if (i < n)return 0;elsereturn 1;
}
int m…
项目开发中,需要将k8s中的数据下载到本地的数据库,进行一些测试。
进入postgresql,进行查询
kubectl get po -n infrakubectl exec -it postgres-0 -n infra -- bash\c fs_resource_usage比如:需要将上面的数据的前10条导出来…