I've been surfing the internet, but I can not find an algorithm to search for prime numbers.
var cantidad = 100,j=2;
for(var i=2;i<cantidad;i++) {
for(;j<cantidad;j++) {
if(j%i==0 && (i==j || i==1)) {...
Until now I only know that it is an interface that has the following methods:
invokeMethod ()
invokeFunction ()
getInterface ()
But I do not understand what each of them is for and exactly where the Invocable interface is...
I am trying to save mysql the data that you enter in the form
but the php is giving me errors like this: Parse error: syntax error, unexpected '[' in C:\wamp\www\Tarea2\index.php on line 5
Here the code:
<?php
if(isset($_POST['btn...
What is the difference when using .text and .innerHTML to get the text?
window.addEventListener('DOMContentLoaded',() => {
var pattern = /^joya[0-9]/,
getting = document.getElementsByTagName('*'),
elements = [...
Someone can explain to me what is the difference between:
char* name = "Gerardo";
or
char name[] = "Gerardo";
I would like to know the differences in terms of memory or performance.
Some time ago I am looking for a solid alternative to Eclipse to develop on J2EE, since at certain moments Eclipse is somewhat "erratic" (failures, corruption, ...) especially when you try to work with a J2EE server How can Wildfly be?
To be...
A few weeks ago I did a question about pointers .
Now I have another that I believe involves the Heap and the Stack.
The code is as follows:
int main()
{
int *x; int *y;
int w;
x = new int();
w = 85;
*x = w;
y =...
I have a form and in this I have two INPUTS , these are required so I use the HTML5 REQUIRED property but it only works if I put a BUTTON strong> and this makes my page recharge when doing submit but I do not send it directly but I use A...
Some time ago I was wondering the following question:
What is the difference between:
$(document.body)
$('body')
If you could justify me, it would be very helpful.