kdb+ and q
Questions related to kdb+ and q
cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Project Euler #7: 10,001st prime

https://projecteuler.net/problem=7 By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the 10,001st prime number? Solution 1 Use Eratosthenes’ Sieve to generate enough primes. Then pick the 10,...

Sieve_of_Eratosthenes_animation.gif
SJT by Contributor III
  • 158 Views
  • 1 replies
  • 2 kudos

Project Euler #4

4. Largest palindromic product We find the highest palindromic number in a list, and discover a general form for the last (or first) item that passes a test, without testing every item. Problem https://projecteuler.net/problem=4 A palindromic number ...

World-s-first-ever-palindrome-MADAM-I-M-ADAM.jpeg
SJT by Contributor III
  • 147 Views
  • 1 replies
  • 2 kudos