Samsung Galaxy Core prime does not support OTG functionality, here's the list of Sumsangs that support OTG:
SAMSUNG - 8200 Galaxy S III mini VE (I8200N), E330S Galaxy S4 LTE-A (SHV-E330S), G3812B Galaxy S3 Slim, Galaxy J (SGH-N075T), Galaxy K zoom (SM-C115), Galaxy Mega 6.3 I9200 (GT-I9205), Galaxy Nexus i9250, Galaxy Note 3 (SM-N900) (GT-N900), Galaxy Note I717, Galaxy Note II N7100, Galaxy Note N7000, Galaxy Note T879 (SGH-T879), GALAXY Note3 N9002 (SM-N9002), Galaxy S 4G, Galaxy S Duos 2 S7582, Galaxy S Duos S7562, Galaxy S II 4G Epic 4G Touch, Galaxy S II 4G I9100M, Galaxy S II AT&T, Galaxy S II HD LTE, Galaxy S II I777 (SGH-I777/ Attain) , Galaxy S II LTE, Galaxy S II LTE I9210, Galaxy S II Skyrocket HD, Galaxy S II T989 (SGH-T989), Galaxy S II T-Mobile, Galaxy S II TV, Galaxy S II X T989D (SGH-T989D), Galaxy S III CDMA (SGH-I535), Galaxy S III I747, Galaxy S III I9300 (Galaxy S3), Galaxy S III T999, Galaxy S4 Active LTE-A (SHV-E470S), Galaxy S4 CDMA (SGH-I545), Galaxy S4 zoom (SM-C1010), Galaxy S5, Galaxy S5 (octa-core), Galaxy S5 Active, Galaxy S5 G9009D (SM-G9009D), Galaxy S5 LTE-A, Galaxy S5 Sport, Galaxy Tab 10.1, Galaxy Tab 10.1 3G, Galaxy Tab S 10.5, Galaxy W I8150, Galaxy Win I8550 (I8552), Galaxy Win Pro G3812, I9100 Galaxy S II, I9100G Galaxy S II, I9103 Galaxy R, I9105 Galaxy S II Plus, I929 Galaxy S II Duos, I9295 Galaxy S4 Active (I537), I9305 Galaxy S III (GALAXY S III LTE), I9500 Galaxy S4, I9502 Galaxy S4, I9505 Galaxy S4, I9506 Galaxy S4, Galaxy Note 10.1 (2014 Edition) (SM-P601), Galaxy Note 10.1 (2014 Edition) (SM-P605), Galaxy Note 10.1 (2014 Edition) (Wi-Fi) (SM-P600), Galaxy Note 3 Neo LTE-A 16GB (SM-N7505), Galaxy Note Pro 12.2 (SM-P900), Galaxy Note Pro 12.2 LTE (SM-P905), Galaxy S5 LTE-A, Galaxy Tab 2 7.0 I705, Galaxy Tab 2 7.0 P3100, Galaxy Tab 3 10.1 P5210, Galaxy Tab 3 10.1 P5220, Galaxy Tab 3 8.0 (4G + Wi-Fi) (SM-T315), Galaxy Tab 3 8.0 (Wi-Fi) (SM-T310), Galaxy Tab Pro 10.1 (SM-T520), Galaxy Tab Pro 10.1 LTE (SM-T525), Galaxy Tab Pro 12.2 (SM-T900), Galaxy Tab Pro 12.2 LTE (SM-T905), Galaxy Tab Pro 8.4 (SM-T320), Galaxy Tab S 10.5 4G & Wi-Fi (SM-T805), Galaxy Tab S 10.5 Wi-Fi (SM-T80), Galaxy Tab S 8.4 4G & Wi-Fi (SM-T705), Galaxy Tab S 8.4 LTE, Galaxy Tab S 8.4Wi-Fi (SM-T700), Galaxy TabPRO 12.2 (SM-T900).