We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- SQL
- Alternative Queries
- Print Prime Numbers
Print Prime Numbers
Print Prime Numbers
- Prepare
- SQL
- Alternative Queries
- Print Prime Numbers
Write a query to print all prime numbers less than or equal to . Print your result on a single line, and use the ampersand () character as your separator (instead of a space).
For example, the output for all prime numbers would be:
2&3&5&7