Mix sugar, cocoa, margarine, milk, vanilla and peanut butter. Let boil 3 minutes (until soft ball stage). Remove from heat and add oatmeal and nuts; stir well. Drop mixture on wax paper and cool.