⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bigprime.cal

📁 早期freebsd实现
💻 CAL
字号:
/* * Copyright (c) 1993 David I. Bell * Permission is granted to use, distribute, or modify this source, * provided that this copyright notice remains intact. * * A prime test, base a, on p*2^x+1 for even x>m. */define bigprime(a, m, p){	local n1, n;	n1 = 2^m * p;	for (;;) {		m++;		n1 += n1;		n = n1 + 1;		if (isodd(m))			continue;		print m;		if (pmod(a, n1 / 2, n) != n1)			continue;		if (pmod(a, n1 / p, n) == 1)			continue;		print "	" : n;	}}global lib_debug;if (lib_debug >= 0) {    print "bigprime(a, m, p) defined";}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -