<script> var arr = []; for (var i=2; i<100; i++) { if(i%2 == 0 || i % 3 == 0) continue; arr.push(i) }; document.write(arr) </script>