[過去ログ] 底辺私立医大を卒業した医者って頭悪いよね? Part32 (1002レス)
上下前次1-新
このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
531: 2024/09/28(土)12:25 ID:Q+Z7Esxh(1) AAS
library(numbers)
p=Primes(100)
n=length(p)
ans=NULL
for(i in 1:(n-2)){
for(j in (i+1):(n-1)){
for(k in (j+1):n){
a=p[i]
b=p[j]
c=p[k]
x= a+b-c
y= b+c-a
z= c+a-b
if(x>0 & y>0 & z>0){
if(isPrime(x) & isPrime(y) & isPrime(z)){
ans=rbind(ans,c(a,b,c,x,y,z))
}
}
}
}
}
colnames(ans)=c('a','b','c','a+b-c','b+c-a','c+a-b')
ans
abc=ans[,1:3]
xyz=ans[,4:6]
abc[rowSums(abc)==max(rowSums(abc)),]
abc[rowSums(abc)==min(rowSums(abc)),]
ans4=abc[isPrime(rowSums(abc)),]
ans4
上下前次1-新書関写板覧索設栞歴
あと 471 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル
ぬこの手 ぬこTOP 0.069s*