The S&P 500 index already meets your needs. In order to qualify for the index a company must have positive earnings. This disqualifies a bunch of tech companies that may or may not ever succeed financially...
See https://stockmarketmba.com/largeststocksnotinthesp500.php