Survivability of planetary systems in young and dense star clusters