11
cout<<"display";
Hilarious Herring
cout<<"display";
import regex;
public class JythonHelloWorld {
public static void main(String[] args) {
R_text_normalization = regex.compile(
r"^[a-zA-Z]+\s*\|(?!\s*\|)[가-힣a-zA-Z0-9 \^$~*%\-_'.,#&]+\|(?!\s*$)[가-힣a-zA-Z0-9 $%\-_'.,#&<>]+$|"
r"^[rfb]\s*\|((?!\s*\|)[가-힣a-zA-Z0-9 \^$~*%\-_'.,#&]+\|){1,}(?!\s*$)[가-힣a-zA-Z0-9 $%\-_'.,#&<>]+$"
);
R_onscreen = regex.compile(r"[가-힣a-zA-Z0-9 ]+");
}
}
import org.python.util.PythonInterpreter;
import regex;
public class JythonHelloWorld {
public static void main(String[] args) {
try(PythonInterpreter pyInterp = new PythonInterpreter()) {
pyInterp.exec("print('Hello Python World!')");
}
}
}
include
println(getPrimes(10, 100));
function getPrimes(nPrimes, startAt)
{
var ar = [];
var i = startAt;
while(ar.length < nPrimes)
{
if (isPrime(i))
{
ar.push(i);
}
i++;
}
return ar;
}
// Returns true if a number is prime
function isPrime(n)
{
if (n < 2)
return false;
if (n == 2)
return true;
var maxDiv = Math.sqrt(n);
for(var i = 2; i <= maxDiv; i++)
{
if (n % i == 0)
{
return false;
}
}
return true;
}
import org.python.util.PythonInterpreter;
public class JythonHelloWorld {
public static void main(String[] args) {
try(PythonInterpreter pyInterp = new PythonInterpreter()) {
pyInterp.exec("print('Hello Python World!')");
}
}
}