document.getElementById('calculateButton').addEventListener('click', () => { const input = document.getElementById('siveInput').value; const resultContainer = document.getElementById('resultContainer'); if (input) { const primes = sive(input); resultContainer.innerHTML = `

Prime Numbers:

${primes.join(', ')}

`; } else { resultContainer.innerHTML = `

Please enter a valid number.

`; } });