- Can babylon.js be used to create native Android/iOS apps?
- If they support WebGL there is no problem. Babylon.js uses a system that slowly degrade shaders quality in order to target low end devices
window.devicePixelRatio
function primeFactorization(num){
var root = Math.sqrt(num),
result = arguments[1] || [],
x = 2;
if(num % x){
x = 3;
while((num % x) && ((x = x + 2) < root)){}
}
x = (x <= root) ? x : num;
result.push(x);
return (x === num) ? result : primeFactorization(num/x, result) ;
}