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.
/*Enter your query here.*/WITHRECURSIVEtAS(SELECT3ASnumsUNIONSELECTnums+2FROMtWHEREnums<=1000)SELECTconcat('2&',GROUP_CONCAT(numsSEPARATOR'&'))FROMtWHEREnumsNOTIN(SELECTDISTINCTa.numsFROMtaJOINtbONb.nums<=FLOOR(SQRT(a.nums))ANDa.nums%b.nums=0)
Print Prime Numbers
You are viewing a single comment's thread. Return to all comments →